May 19, 2003
12:36 p.m.
Hello, gcc on hp-ux uses the native linker, so if gcc is used there, the normal gcc flags do not apply. I propose the following patch to unixccompiler.py ----8<------------8<-----------------8<------------8<-----------------8<------- 206,207c206,209 < elif compiler[:3] == "gcc" or compiler[:3] == "g++": < return "-Wl,-R" + dir ---
elif sys.platform[:5] == "hp-ux": return "+s -L" + dir elif compiler[:3] == "gcc" or compiler[:3] == "g++": return "-Wl,-R" + dir
----8<------------8<-----------------8<------------8<-----------------8<------- That also adds +s, which means that SHLIB_PATH is honored (the same as LD_LIBRARY_PATH on Linux/Solaris). Regards, Harri