~mdw
/
termux-packages
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd8c1a2
)
play-audio: Avoid linking against libgnustl_shared
author
Fredrik Fornwall
<fredrik@fornwall.net>
Wed, 10 Aug 2016 23:21:56 +0000
(19:21 -0400)
committer
Fredrik Fornwall
<fredrik@fornwall.net>
Wed, 10 Aug 2016 23:21:56 +0000
(19:21 -0400)
packages/play-audio/build.sh
patch
|
blob
|
blame
|
history
diff --git
a/packages/play-audio/build.sh
b/packages/play-audio/build.sh
index
ee5b0e5
..
f87ade8
100644
(file)
--- a/
packages/play-audio/build.sh
+++ b/
packages/play-audio/build.sh
@@
-4,8
+4,12
@@
TERMUX_PKG_VERSION=0.4
termux_step_make_install () {
local LIBEXEC_BINARY=$TERMUX_PREFIX/libexec/play-audio
- $CXX $CFLAGS $LDFLAGS \
+ # Use $CC instead of $CXX to link in order to avoid linking
+ # against libgnustl_shared.so, since the launcher script
+ # below removes LD_LIBRARY_PATH.
+ $CC $CFLAGS $LDFLAGS \
-std=c++14 -Wall -Wextra -pedantic -Werror \
+ -fno-exceptions \
-lOpenSLES \
$TERMUX_PKG_BUILDER_DIR/play-audio.cpp -o $LIBEXEC_BINARY