Yes this works. I did a `make distclean` and then a ./configure;make with your new configure script and the whole package built and linked up cleanly without linking to my dl library.
Thanks Ricky Henning Meier-Geinitz wrote: > Hi, > > On Thu, Feb 06, 2003 at 11:09:22AM -0800, [email protected] wrote: > >> From a `make` command with sane 1.0.10 in mac osx I get > > > Standard sane-backends-1.0.10 without any change? I'm asking because > there have been reports that building prereleases works ok on MacOS X. > At least I haven't heard about this one. > > >>-----------cut----------------- >>making all in frontend >> >>gcc -o .libs/scanimage scanimage.o stiff.o ../sanei/libsanei.a >>-L../backend/.libs -lsane ../lib/liblib.a -L/usr/local/lib -lusb -lIOKit -lm >> >>/usr/bin/ld: Undefined symbols: >> >>_dlclose > > >>Anyway... I put "-ldl" in my LIBS macro in frontends/Makefile and it went >>smooth after that. > > > But I thought MacOS X is supposed to not use libdl? That's why we have > the following code in acinclude.m4: > > #Mac OS X/Darwin > AC_CHECK_HEADERS(mach-o/dyld.h, > [AC_CHECK_FUNCS(NSLinkModule, enable_dynamic=yes,) > DL_LIB="" > > For Linux, libtool seems to be smart enough to add the -ldl option > automatically. I don't know why it doesn't do that on MacOS X. > > And I either don't know why $(DL_LIBS) is missing in > frontends/Makefile.in. There may be a good reason. > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > [email protected] > http://www.mostang.com/mailman/listinfo/sane-devel -- -- Ricky Charlet 408.962.8711 [email protected]
