libgcc.mk fallout

David Edelsohn dje@watson.ibm.com
Wed Dec 1 15:55:00 GMT 2004


	The problem is that the revised libgcc.mk does not play nice with
t-aix* LINK_SHLIB, producing rules like:

./libgcc_s.a: stmp-dirs 
         ./xgcc -B./ -B/farm/dje/install/powerpc-ibm-aix5.2.0.0-20041201/powerpc-ibm-aix5.2.0.0/bin/ -isystem /farm/dje/install/powerpc-ibm-aix5.2.0.0-20041201/powerpc-ibm-aix5.2.0.0/include -isystem /farm/dje/install/powerpc-ibm-aix5.2.0.0-20041201/powerpc-ibm-aix5.2.0.0/sys-include -L/tmp/powerpc-ibm-aix5.2.0.0-20041201/gcc/../ld -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -shared -nodefaultlibs -Wl,-bE:libgcc/./libgcc.map -o ./shr.o  $(filter-out ,$(objects)) -lc `case ./libgcc_s in *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; *) echo -lc ;; esac` ; rm -f tmp-./libgcc_s.a ; ar -X32_64 rc tmp-./libgcc_s.a ./shr.o ; mv tmp-./libgcc_s.a ./libgcc_s.a ; rm -f ./shr.o

Filenames such as tmp-.libgcc_s.a do not work well.  As with the earlier
problems, "./" is breaking things.

David



More information about the Gcc-patches mailing list