On Oct 4, 2009, at 2:36 PM, Viktor Szakáts wrote:
No need to do this just correct my typos:
export HB_BLABLABLA="-arch i386"
export HB_JGJHG=${HB_BLABLABLA}
Sorry Viktor, this still don't work:

<output>
gcc -I. -I../../../../../include -fno-common -Wall -W -O3 -o hbpp.o -c ../../../hbpp.c gcc -fno-common -Wall -W -O3 -o ../../../../../bin/darwin/gcc/hbpp hbpp.o -L../../../../../lib/darwin/gcc -arch i386 -lhbnortl - lhbcommon -lm
ld: warning: in hbpp.o, file is not of required architecture
ld: warning: in ../../../../../lib/darwin/gcc/libhbnortl.a, file is not of required architecture ld: warning: in ../../../../../lib/darwin/gcc/libhbcommon.a, file is not of required architecture
Undefined symbols:
  "_main", referenced from:
      start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [hbpp] Error 1
rm hbpp.o
make[2]: *** [descend] Error 2
make[1]: *** [pp] Error 2
make: *** [source] Error 2
</output>

As you see, hbpp.c is compiled without "-arch i386" and then the obj obtained is used to produce an "-arch i386" lib.

best regards,

Teo

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to