mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
do not create copy relocations when linking to shared libs
Originally committed as revision 11202 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
571bf37f6d
commit
e11910120a
10
configure
vendored
10
configure
vendored
@ -1737,6 +1737,7 @@ enabled extra_warnings && check_cflags -Winline
|
|||||||
check_ldflags -Wl,--warn-common
|
check_ldflags -Wl,--warn-common
|
||||||
check_ldflags $LDLATEFLAGS
|
check_ldflags $LDLATEFLAGS
|
||||||
check_ldflags -Wl,-Bsymbolic
|
check_ldflags -Wl,-Bsymbolic
|
||||||
|
check_ldflags -Wl,-z,nocopyreloc
|
||||||
|
|
||||||
if enabled small; then
|
if enabled small; then
|
||||||
check_cflags -Os # not all compilers support -Os
|
check_cflags -Os # not all compilers support -Os
|
||||||
@ -1752,12 +1753,9 @@ fi
|
|||||||
|
|
||||||
# PIC flags for shared library objects where they are needed
|
# PIC flags for shared library objects where they are needed
|
||||||
if enabled shared; then
|
if enabled shared; then
|
||||||
# LIBOBJFLAGS may have already been set in the OS configuration
|
case "$arch" in
|
||||||
if test -z "$LIBOBJFLAGS" ; then
|
x86_64|ia64|alpha|sparc*|power*) add_cflags '\$(PIC)' ;;
|
||||||
case "$arch" in
|
esac
|
||||||
x86_64|ia64|alpha|sparc*|power*) LIBOBJFLAGS='$(PIC)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if enabled gprof; then
|
if enabled gprof; then
|
||||||
|
Loading…
Reference in New Issue
Block a user