diff options
author | Sean McGovern <gseanmcg@gmail.com> | 2011-03-16 01:01:17 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-03-16 23:18:27 +0000 |
commit | dff68563d846274cee0a2cd2430d6f1a2cb51eaa (patch) | |
tree | 4f75b0bb8657b294eac01ec635731b473849d162 | |
parent | f8a45fa1b1764b34d4263eacd93411e8ba0484a4 (diff) | |
download | ffmpeg-dff68563d846274cee0a2cd2430d6f1a2cb51eaa.tar.gz |
darwin: use -read_only_relocs flag only on 32-bit x86
Avoids the linker warning:
ld: warning: -read_only_relocs cannot be used with x86_64
Signed-off-by: Mans Rullgard <mans@mansr.com>
-rwxr-xr-x | configure | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2386,7 +2386,8 @@ case $target_os in enable malloc_aligned gas="gas-preprocessor.pl $cc" enabled ppc && add_asflags -force_cpusubtype_ALL - SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR) -Wl,-read_only_relocs,suppress' + SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR)' + enabled x86_32 && append SHFLAGS -Wl,-read_only_relocs,suppress strip="${strip} -x" add_ldflags -Wl,-dynamic,-search_paths_first SLIBSUF=".dylib" |