# from Torsten Schoenfeld
# on Sunday 18 February 2007 12:10 pm:
>For this to work, libgtkmozembed's pkg-config file[1] specifies
>that "-Wl,-rpath -Wl,${libdir}" be used as arguments to the linker.
>Unfortunately, ExtUtils::MakeMaker strips linker flags that don't look
>like -lxxx[2].
>
>I've been using LD_RUN_PATH as a workaround, but apparently that
> stopped working some time ago.
>
>So, is this a bug in EU::MM? Or is the stripping done intentionally?
>If it's not a bug, what do I do if there are vital linker flags like
> the above?
Well, I can't really answer the question, but I can contribute the
cryptic notes caused by a day full of hair-pulling trying to make a
universal binary.
It appears that I came up with:
make -j 2 'PASTHRU_INC=-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch
i386 -arch ppc' 'OTHERLDFLAGS=-isysroot /Developer/SDKs/MacOSX10.4u.sdk
-arch i386 -arch ppc'
Though I can't say how correct that is. One interesting observation is
that it only strips things that start with '-', leaving barewords
(opterands) untouched. <snark>So (:-D) maybe you could
backslash-escape a space (or two (or three)) and get them to
interpolate (disappear) at just the right point (after passing the
option stripping, before getting run.)</snark>
Also I have a note about it being less fun with Module::Build and
ExtUtils::CBuilder, but I believe the "edit Config.pm" pain is due to
it lacking c*flags options (or me just not finding them) and/or apple
not eating their own dog food.
In your case, I think MB/EU::CB be painless. Given that this is your
module, I would suggest going that route.
Gory, rambling details (line 58)...
http://svn.dotreader.com/svn/devnotes/mac/mac_setup.txt
--Eric
--
Speak softly and carry a big carrot.
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------