I try to compile a package which constructs three plugins during the
compilation.
An example of a typical Makefile.in for the plugin is:
PLUGIN=about.so
PLUGINDIR=${pkglibdir}
OBJECTS= about.o
LOBJECTS = $(OBJECTS:.o=.lo)
$(PLUGIN): $(OBJECTS)
$(LIBTOOL) --mode=link $(CC) -module $(LIBS) -shared -o $@ $(LOBJECTS)
.c.o: $(SRCS)
$(LIBTOOL) --mode=compile $(CC) $(DEFS) $(CFLAGS) -c $^ -o $@
How should I change this so that it compiles?
At the moment, it fails miserably with an insistant -shared option on
the gcc line, that I don't know how to get rid of:
gcc -shared -o htmlbar.so .libs/cap.o .libs/htmlbar.o .libs/
html.o .libs/html2.o .libs/html_diag.o .libs/html_table.o .libs/
html_form.o .libs/image.o .libs/htmlbar_gui.o .libs/
quickstart.o .libs/rpopup.o .libs/wizards.o -L/Volumes/FireWire3/sw/
lib -L/usr/X11R6/lib /Volumes/FireWire3/sw/lib/libgnomeui-2.dylib /
Volumes/FireWire3/sw/lib/libgnome-keyring.dylib /Volumes/FireWire3/sw/
lib/libjpeg.dylib /Volumes/FireWire3/sw/lib/libbonoboui-2.dylib -lSM -
lICE /Volumes/FireWire3/sw/lib/libgnomecanvas-2.dylib /Volumes/
FireWire3/sw/lib/libgnome-2.dylib /Volumes/FireWire3/sw/lib/
libesd.dylib /Volumes/FireWire3/sw/lib/libaudiofile.dylib /Volumes/
FireWire3/sw/lib/libart_lgpl_2.dylib /Volumes/FireWire3/sw/lib/libgtk-
x11-2.0.dylib /Volumes/FireWire3/sw/lib/libgdk-x11-2.0.dylib -lXrandr
-lXinerama -lXext -lXcursor /Volumes/FireWire3/sw/lib/
libatk-1.0.dylib /Volumes/FireWire3/sw/lib/libgdk_pixbuf-2.0.dylib /
Volumes/FireWire3/sw/lib/libpangoxft-1.0.dylib -lXft -lXrender /
Volumes/FireWire3/sw/lib/libpangox-1.0.dylib -lX11 /Volumes/FireWire3/
sw/lib/libpangoft2-1.0.dylib -lfontconfig -lfreetype /Volumes/
FireWire3/sw/lib/libpango-1.0.dylib /Volumes/FireWire3/sw/lib/
libgnomevfs-2.dylib /Volumes/FireWire3/sw/lib/libxml2.dylib -ldl -
lpthread -lz /Volumes/FireWire3/sw/lib/libbonobo-2.dylib /Volumes/
FireWire3/sw/lib/libgconf-2.dylib /Volumes/FireWire3/sw/lib/libbonobo-
activation.dylib /Volumes/FireWire3/sw/lib/libORBitCosNaming-2.dylib /
Volumes/FireWire3/sw/lib/libORBit-2.dylib /Volumes/FireWire3/sw/lib/
libpopt.dylib /Volumes/FireWire3/sw/lib/libgobject-2.0.dylib -lresolv
-lm /Volumes/FireWire3/sw/lib/libgmodule-2.0.dylib /Volumes/FireWire3/
sw/lib/libgthread-2.0.dylib /Volumes/FireWire3/sw/lib/
libglib-2.0.dylib /Volumes/FireWire3/sw/lib/libpcre.dylib /Volumes/
FireWire3/sw/lib/libaspell.dylib -L/System/Library/Frameworks/
Python.framework/Versions/2.3/lib/python2.3/config -lpython2.3 /
Volumes/FireWire3/sw/lib/libintl.dylib /Volumes/FireWire3/sw/lib/
libiconv.dylib -lc
And many undefined symbols which come from the main part:
_main
_main_v
_doc_get_iter_at_bevent
_make_config_list_item
...
collect2: ld returned 1 exit status
It uses libtool version 1.5.16 if it matters:
PROGRAM=ltmain.sh
PACKAGE=libtool
VERSION=1.5.16
TIMESTAMP=" (1.1220.2.235 2005/04/25 18:13:26)"
Any help would be greatly appreciated.
Cheers,
Michèle
<http://micmacfr.homeunix.org>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel