[Libav-user] ld: warning: PIE disabled.

Tim Rodgers trodgers at mac.com
Mon Mar 30 19:25:59 CEST 2015

> On Mar 30, 2015, at 6:16 AM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Tim1961 <trodgers at ...> writes:
>> Can anyone shed light on this warning?
> I am unable to reproduce this, what is 
> your configure line?

I'm using this script to do all the heavy lifting:


Here are the four configure lines and I think the problem is in the i386 library. I am beginning to think I should define my arch as x86_32 which would cause ffmpeg's configure script to supply this linker flag for darwin builds:

   enabled x86_32 && append SHFLAGS -Wl,-read_only_relocs,suppress

configure --target-os=darwin --arch=armv7 '--cc=xcrun -sdk iphoneos clang' \
	--enable-cross-compile --disable-debug --disable-programs --disable-doc \
	--enable-pic '--extra-cflags=-arch armv7 -mios-version-min=7.0' \
	'--extra-cxxflags=-arch armv7 -mios-version-min=7.0' '--extra-ldflags=-arch armv7 \
	-mios-version-min=7.0' \

configure --target-os=darwin --arch=arm64 '--cc=xcrun -sdk iphoneos clang' \
	--enable-cross-compile --disable-debug --disable-programs --disable-doc --enable-pic \
	'--extra-cflags=-arch arm64 -mios-version-min=7.0' \
	'--extra-cxxflags=-arch arm64 -mios-version-min=7.0' \
	'--extra-ldflags=-arch arm64 -mios-version-min=7.0' \

configure --target-os=darwin --arch=i386 '--cc=xcrun -sdk iphonesimulator clang' \
	--enable-cross-compile --disable-debug --disable-programs --disable-doc --enable-pic \
	'--extra-cflags=-arch i386 -mios-simulator-version-min=7.0' \
	'--extra-cxxflags=-arch i386 -mios-simulator-version-min=7.0' \
	'--extra-ldflags=-arch i386 -mios-simulator-version-min=7.0' \

configure --target-os=darwin --arch=x86_64 '--cc=xcrun -sdk iphonesimulator clang' \
	--enable-cross-compile --disable-debug --disable-programs --disable-doc --enable-pic \
	'--extra-cflags=-arch x86_64 -mios-simulator-version-min=7.0' \
	'--extra-cxxflags=-arch x86_64 -mios-simulator-version-min=7.0' \
	'--extra-ldflags=-arch x86_64 -mios-simulator-version-min=7.0' \

More information about the Libav-user mailing list