summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-12-12 21:51:52 +0000
committerMåns Rullgård <mans@mansr.com>2007-12-12 21:51:52 +0000
commit569cb218f8e8b29d95f75aa8edd39a1c2143f936 (patch)
treef2ddead260765fa6f11864e62abbea4abca6a234 /configure
parenta309073bf44e58868e4124900ddcecc2aefbdf3b (diff)
Revert r11202: do not create copy relocations when linking to shared libs
This caused more problems than it solved and is no longer required. Originally committed as revision 11210 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 6 insertions, 4 deletions
diff --git a/configure b/configure
index 761f3ef33d..0bfa186639 100755
--- a/configure
+++ b/configure
@@ -1737,7 +1737,6 @@ 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
@@ -1753,9 +1752,12 @@ fi
# PIC flags for shared library objects where they are needed
if enabled shared; then
- case "$arch" in
- x86_64|ia64|alpha|sparc*|power*) add_cflags '\$(PIC)' ;;
- esac
+ # 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
fi
if enabled gprof; then