Przemyslaw, it worked here and produced both harbour.dll and harbourm.dll
ar -M < __lib__.tmp & strip -S ../../../../../lib/os2/gcc/hbdebug.a & ..\..\.. \..\..\config\os2rm -f __lib__.tmp gcc -shared -L../../../../../lib/os2/gcc -o ../../../../../bin/os2/gcc/harbour .dll -Wl,@__dyn__.tmp __dyn__.def -lsocket -s emximp -o ../../../../../lib/os2/gcc/harbour.a ../../../../../bin/os2/gcc/harbou r.dll gcc -shared -L../../../../../../lib/os2/gcc -o ../../../../../../bin/os2/gcc/h arbourm.dll -Wl,@__dyn__.tmp __dyn__.def -lsocket -s emximp -o ../../../../../../lib/os2/gcc/harbourm.a ../../../../../../bin/os2/gcc /harbourm.dll Question is: did it expand or not @__dyb__.tmp list before calling ld? Now I'll try with my ld.exe to see what gets passed to ld.exe. Maurilio. Przemysław Czerpak wrote: > On Mon, 22 Feb 2010, Szak�ts Viktor wrote: > > Hi, > >>>> So maybe we can simply create 2 files. One with GCC/LD options >>>> only and with reference to second file __flst__.tmp will have >>>> list of object files. Such reference can be stored in first file >>>> as: '-Wl,@__flst__.tmp'. If gcc expects at least one .o file then >>>> we can pass first object file directly as GCC parameter and not >>>> include in __flst__.tmp. >>> That's a good idea. >> The file list is already separate, so to try this solution out, >> only '-Wl,' needs to be added right in front of '@__dyn__.tmp': >> --- [gcc.mk] >> $(DY) $(DFLAGS) $(HB_USER_DFLAGS) $(DY_OUT)$(DYN_DIR)/$@ -Wl,@__dyn__.tmp >> __dyn__.def $(DLIBS) $(DYSTRIP) >> --- >> This assumes vanilla 2.0.0 gcc.mk, not the hacked ones currently >> on SVN. > > Looks OK for me. > If OS2 GCC port does not need at least one .o/.obj file (in my Linux box > it doesn't) then it should work and resolve the problem without direct > call to LD. > > Maurilio or David, Can you check it? > > best regards, > Przemek > _______________________________________________ > Harbour mailing list (attachment size limit: 40KB) > [email protected] > http://lists.harbour-project.org/mailman/listinfo/harbour > -- __________ | | | |__| Maurilio Longo |_|_|_|____| farmaconsult s.r.l. _______________________________________________ Harbour mailing list (attachment size limit: 40KB) [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
