[plt-scheme] Small glitch in mzc
At Mon, 28 Mar 2005 23:51:04 +0200, Hans Oesterholt wrote:
> mzc -v ++ldf -Wl,--export-dynamic ++ldf -lgtk-x11-2.0 ++ldf
> -lgdk-x11-2.0 ++ldf -latk-1.0 ++ldf -lgdk_pixbuf-2.0 ++ldf -lm ++ldf
> -lpangoxft-1.0 ++ldf -lpangox-1.0 ++ldf -lpango-1.0 ++ldf -lgobject-2.0
> ++ldf -lgmodule-2.0 ++ldf -ldl ++ldf -lglib-2.0 --ld mzgtk2wrap.so
> mzgtk2_wrap.o mzgtk2.o btree.o convert_enums.o
> MzScheme compiler (mzc) version 299.100, Copyright (c) 2005 PLT Scheme, Inc.
> "mzgtk2_wrap.o" "mzgtk2.o" "btree.o" "convert_enums.o":
> link-extension: (/usr/bin/ld -shared -Wl,--export-dynamic -lgtk-x11-2.0
> -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0
> -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 mzgtk2_wrap.o
> mzgtk2.o btree.o convert_enums.o /home/hans/local/lib/mzdyn.o -o
> mzgtk2wrap.so)
> /usr/bin/ld: unrecognized option '-Wl,--export-dynamic'
> /usr/bin/ld: use the --help option for usage information
> link-extension: command failed
> make: *** [compiled/native/i386-linux/mzgtk2wrap.so] Error 1
> ###############################################################################
> #######################
>
> Looks like mzc is "thinking" gcc is called instead of ld. When I issue:
The problem seems to be in whatever (SWIG?) is calling mzc with ++ldf
-Wl,--export-dynamic. That should be just ++ldf --export-dynamic.
Matthew