[x264-devel] [PATCH 2/2] darwin: use -read_only_relocs flag only on 32-bit x86

Sean McGovern gseanmcg at gmail.com
Mon Feb 13 05:07:03 CET 2012


Avoids the linker warning:
ld: warning: -read_only_relocs cannot be used with x86_64
---
 configure |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index 4f1f820..807a4ed 100755
--- a/configure
+++ b/configure
@@ -1091,7 +1091,8 @@ if [ "$shared" = "yes" ]; then
     elif [ "$SYS" = "MACOSX" ]; then
         echo "SOSUFFIX=dylib" >> config.mak
         echo "SONAME=libx264.$API.dylib" >> config.mak
-        echo "SOFLAGS=-shared -dynamiclib -Wl,-single_module -Wl,-read_only_relocs,suppress -Wl,-compatibility_version,$API.0.0 -Wl,-current_version,$API.0.0 -install_name \$(DESTDIR)\$(libdir)/\$(SONAME) $SOFLAGS" >> config.mak
+        [ "$ARCH" != "X86_64" ] && SOFLAGS="-Wl,-read_only_relocs,suppress $SOFLAGS"
+        echo "SOFLAGS=-shared -dynamiclib -Wl,-single_module -Wl,-compatibility_version,$API.0.0 -Wl,-current_version,$API.0.0 -install_name \$(DESTDIR)\$(libdir)/\$(SONAME) $SOFLAGS" >> config.mak
     elif [ "$SYS" = "SunOS" ]; then
         echo "SOSUFFIX=so" >> config.mak
         echo "SONAME=libx264.so.$API" >> config.mak
-- 
1.7.7



More information about the x264-devel mailing list