[Olsr-dev] question #LDFLAGS_EXE += -Wl,-export-dynamic
Sven-Ola Tuecke
(spam-protected)
Mon Jan 12 11:06:58 CET 2009
Hey,
really!? I recently splitted LDFLAGS into LDFLAGS and LDFLAGS_EXE. Maybe
I've overseen that was overwritten with the MacOS specific Makefile snippet.
Reason: for the executable, we may want extended LDFLAGS=--dynamics-list (if
the linker supports that).
When using GCC, you'll need that when linking. Otherwise, the plugins will
not run. The olsrd executable needs to export all what's imported by the
plugins. That's what the option is for.
Can sme. shed some light on this and send me the MacOS output of:
> ld --help
or
> gcc -Wl,--help
Thank you.
// Sven-Ola
""L. Aaron Kaplan"" <(spam-protected)> schrieb im Newsbeitrag
news:(spam-protected)
> Hi!
>
> I cross checked - it is not just my gcc setup on my mac but also on a
> second one.
>
> #LDFLAGS_EXE += -Wl,-export-dynamic
>
> in Makefile.inc does not work. Compile break. The option is not known
> on OS X's gcc
> ultrastabil:olsrd aaron$ gcc --version
> i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)
> Copyright (C) 2005 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There
> is NO
> warranty; not even for MERCHANTABILITY or FITNESS
>
> Do we need it?
> Should I change it to a conditional LD_FLAGS_EXE which is empty for OSX?
>
> a.
>
>
> --
> Olsr-dev mailing list
> (spam-protected)
> http://lists.olsr.org/mailman/listinfo/olsr-dev
More information about the Olsr-dev
mailing list