[Ffmpeg-devel] OSX linker option error

Steven M. Schultz sms
Mon Jul 11 22:59:40 CEST 2005


Hi
	An extraneous option (-d) crept in and causes building on OSX to fail

make -C vhook all
cc -fPIC -O3 -g -Wall -Wno-switch  -no-cpp-precomp -pipe -fomit-frame-pointer -force_cpusubtype_ALL -Wno-sign-compare -faltivec -I.. -I'/usr/local/src/ffmpeg' -I'/usr/local/src/ffmpeg'/libavformat -I'/usr/local/src/ffmpeg'/libavcodec -DHAVE_AV_CONFIG_H `freetype-config --cflags`   -c -o null.o null.c
null.c: In function 'Process':
null.c:59: warning: pointer targets in passing argument 2 of 'avpicture_fill' differ in signedness
cc -Wl,-d,-search_paths_first -g -o null.so -dynamiclib -flat_namespace -undefined suppress null.o
/usr/bin/libtool: unknown option character `d' in: -d
Usage: /usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT]
Usage: /usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load]
make[1]: *** [null.so] Error 1
rm null.o
make: *** [videohook] Error 2


	-search_paths_first is a valid option but -d is not.  The attached
	patch simply removes the un-needed -d

	Cheers,
	Steven Schultz
-------------- next part --------------
--- configure.dist	2005-07-11 07:37:38.000000000 -0700
+++ configure	2005-07-11 13:56:09.000000000 -0700
@@ -312,7 +312,7 @@
 extralibs=""
 darwin="yes"
 strip="strip -x"
-LDFLAGS="-Wl,-d,-search_paths_first"
+LDFLAGS="-Wl,-search_paths_first"
 FFSLDFLAGS=-Wl,-bind_at_load
 ;;
 MINGW32*)



More information about the ffmpeg-devel mailing list