link errors

mike <[email protected]> Wed, 10 Nov 2004 17:18:02 -0500
Newsgroups gmane.comp.kde.darwin
Message-ID <[email protected]>
i was having this problem when compiling arts:

g++-3.3 -shared -nostdlib    .libs/buffer.o .libs/connection.o 
.libs/core.o .libs/debug.o .libs/dispatcher.o .libs/iomanager.o 
.libs/object.o .libs/socketconnection.o .libs/tcpconnection.o 
.libs/unixconnection.o .libs/tcpserver.o .libs/unixserver.o 
.libs/objectmanager.o .libs/factory.o .libs/idlfilereg.o 
.libs/ifacerepo_impl.o .libs/mcoputils.o .libs/startupmanager.o 
.libs/md5.o .libs/md5auth.o .libs/referenceclean.o .libs/datapacket.o 
.libs/asyncstream.o .libs/notification.o .libs/flowsystem.o 
.libs/extensionloader.o .libs/tmpglobalcomm.o .libs/mcopconfig.o 
.libs/connect.o .libs/reference.o .libs/type.o .libs/trader_impl.o 
.libs/dynamicrequest.o .libs/anyref.o .libs/loopback.o 
.libs/delayedreturn.o .libs/thread.o .libs/dynamicskeleton.o  
.libs/libmcop.lax/libltdlc.a/ltdl.o   -L/opt/kde/include -L/opt/kde/lib 
-L/usr/local/qt/lib -L/sw/lib /opt/kde/lib/libgmodule-2.0.dylib 
/opt/kde/lib/libgthread-2.0.dylib /opt/kde/lib/libglib-2.0.dylib 
/opt/kde/lib/libintl.dylib /opt/kde/lib/libiconv.dylib -ldl 
-L/usr/lib/gcc/darwin/3.3 -L/usr/lib/gcc/darwin 
-L/usr/libexec/gcc/darwin/ppc/3.3/../../.. -lstdc++ -lgcc -lSystem  -o 
.libs/libmcop.1.0.0.dylib
g++-3.3: unrecognized option `-shared'
ld: Undefined symbols:
dyld_stub_binding_helper
make[2]: *** [libmcop.la] Error 1


i found that i should have the flags "-flat_namespace -bundle 
-undefined suppress" in order for it to build correctly. I was 
wondering where the proper filei have to change for these flags to be 
put in so that i could build correctly.

any ideas?

thanks
mike