On Jan 31, 2013, at 02:21, Jerry wrote: > On Jan 30, 2013, at 3:42 PM, Ryan Schmidt wrote: > >> If you want those three values to be in CFLAGS, you'll have to enclose them >> in quotes: >> >> CFLAGS="-F/opt/local/Library/Frameworks -framework AquaTerm" > > Thanks, Ryan. > > I entered this line with quotes in my script followed by > export CFLAGS > (and removed the symlink I mentioned earlier) but Aquaterm was not > found--PLplot still builds without the Aquaterm option. There are lots of > occurrences of things like this which I don't understand: > > cd /usr/local/plplot_build_dir/examples/c && /usr/bin/gcc > -F/opt/local/Library/Frameworks -framework AquaTerm > -I/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/plplot/include > -I/usr/local/plplot_build_dir/include > -I/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/plplot/lib/qsastime > -DUSINGDLL -o CMakeFiles/x33c.dir/x33c.c.o -c > /Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/plplot/examples/c/x33c.c > i686-apple-darwin11-llvm-gcc-4.2: -framework: linker input file unused > because linking not done > i686-apple-darwin11-llvm-gcc-4.2: AquaTerm: linker input file unused because > linking not done
I'm not an expert on writing Makefiles or CMakeLists.txt; I tend to mostly package up software others have written that already have correctly-written build scripts. As far as I know, "-framework Foo" is to frameworks as "-lfoo" is to libraries, so it belongs in LDFLAGS and not CFLAGS. _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users