notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sh2: timing fixes
[picodrive.git]
/
configure
diff --git
a/configure
b/configure
index
314cd95
..
9af719f
100755
(executable)
--- a/
configure
+++ b/
configure
@@
-280,7
+280,7
@@
check_libavcodec()
#include <libavcodec/avcodec.h>
void main() { avcodec_decode_audio3(0, 0, 0, 0); }
EOF
#include <libavcodec/avcodec.h>
void main() { avcodec_decode_audio3(0, 0, 0, 0); }
EOF
- compile_
binary "$@" -lavcodec
+ compile_
object "$@"
}
#MAIN_LDLIBS="$MAIN_LDLIBS -lz"
}
#MAIN_LDLIBS="$MAIN_LDLIBS -lz"
@@
-291,7
+291,11
@@
check_libpng || fail "please install libpng (libpng-dev)"
if check_libavcodec; then
have_libavcodec="yes"
if check_libavcodec; then
have_libavcodec="yes"
- MAIN_LDLIBS="-lavcodec $MAIN_LDLIBS"
+ # add -ldl if needed
+ case "$MAIN_LDLIBS" in
+ *"-ldl"*) ;;
+ *) MAIN_LDLIBS="-ldl $MAIN_LDLIBS" ;;
+ esac
fi
# find what audio support we can compile
fi
# find what audio support we can compile