On Wed, 25 Nov 2009, David Arturo Macias Corona wrote:

Hi,

> For 12894:
> ----------------------------------
> gcc  -I. -I../../../../../include  -Zomf -Wall -W -O3  -DTCPV40HDRS
> -DHB_FM_STATISTICS_OFF -ohbpp.o -c ../../../hbpp.c
> gcc  -Zomf -Wall -W -O3  -L../../../../../lib/os2/gccomf
> -Le:\usr\lib\tcpipv4  -o ..\..\..\..\..\bin\os2\gccomf\hbpp.exe hbpp.o
> -lhbnortl -lhbcommon
> ----------------------------------
> For 13015:
> ----------------------------------
> gcc  -I. -I../../../../../include -Zomf -Wall -W -O3  -DTCPV40HDRS
> -DHB_FM_STATISTICS_OFF -ohbpp.o -c ../../../hbpp.c
> gcc  -L../../../../../lib/os2/gccomf  -Le:\usr\lib\tcpipv4  -o
> ..\..\..\..\..\bin\os2\gccomf\hbpp.exe hbpp.o -lhbnortl -lhbcommon
> ----------------------------------
> 13015 is missing "-Zomf -Wall -W -O3" for hbpp.exe

Viktor recently cleaned compile and link time switches and the above
is samll side effect of this modification which should be easy to fix.

-Wall -W -O3 are not necessary at link time. Important is only -Zomf
and it should be added to linker switches. Now in os2/gcc.mk we have:

   ifeq ($(HB_COMPILER),gccomf)
      CFLAGS += -Zomf
   endif

so it's only added to compile switches. If it's necessary at compile
time then please leave:
      CFLAGS += -Zomf
and only add:
      LDFLAGS += -Zomf
If it's not necessary then simple replace CFLAGS with LDFLAGS.

best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to