summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-12-11 20:02:09 +0000
committerMåns Rullgård <mans@mansr.com>2007-12-11 20:02:09 +0000
commite11910120ab0b7519dc8f2a5ee160e69016874c6 (patch)
tree78f3f7ad6a947c728e1e783500e0ccfa3ee06a6c /configure
parent571bf37f6dfa81dc031f6d25e1ab68b2654ac06c (diff)
downloadffmpeg-e11910120ab0b7519dc8f2a5ee160e69016874c6.tar.gz
do not create copy relocations when linking to shared libs
Originally committed as revision 11202 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 4 insertions, 6 deletions
diff --git a/configure b/configure
index 0bfa186639..761f3ef33d 100755
--- a/configure
+++ b/configure
@@ -1737,6 +1737,7 @@ enabled extra_warnings && check_cflags -Winline
check_ldflags -Wl,--warn-common
check_ldflags $LDLATEFLAGS
check_ldflags -Wl,-Bsymbolic
+check_ldflags -Wl,-z,nocopyreloc
if enabled small; then
check_cflags -Os # not all compilers support -Os
@@ -1752,12 +1753,9 @@ fi
# PIC flags for shared library objects where they are needed
if enabled shared; then
- # LIBOBJFLAGS may have already been set in the OS configuration
- if test -z "$LIBOBJFLAGS" ; then
- case "$arch" in
- x86_64|ia64|alpha|sparc*|power*) LIBOBJFLAGS='$(PIC)' ;;
- esac
- fi
+ case "$arch" in
+ x86_64|ia64|alpha|sparc*|power*) add_cflags '\$(PIC)' ;;
+ esac
fi
if enabled gprof; then