Hello everybody,
I've been having a hard time understanding how the compilers work. Here is my problem:
I got a software that I have to build from source and that was designed for Linux.
Problem is: it will only compile with gcc and not clang.
After configuring the environmental variables with
Then, I ran:
However, I don't think that messing with /etc/libmap.conf is a good idea as it only concerns one program. What is the other option?
Ps: I tried adding LIBS += -L/usr/local/lib/gcc48 somewhere in the Makefile. But it didn't work.
Thank you very much
Ps: I'm running FreeBSD 10.2 stable (built 4 days ago) + custom kernel.
I've been having a hard time understanding how the compilers work. Here is my problem:
I got a software that I have to build from source and that was designed for Linux.
Problem is: it will only compile with gcc and not clang.
After configuring the environmental variables with
./configure
, I edited /etc/libmap.conf to map libgcc_s.so.1 from clang with the one from gcc48. As the Makefile was written for Linux, it is configured to use CC and the libraries from /lib/*Then, I ran:
gmake CC=gcc48
However, I don't think that messing with /etc/libmap.conf is a good idea as it only concerns one program. What is the other option?
Ps: I tried adding LIBS += -L/usr/local/lib/gcc48 somewhere in the Makefile. But it didn't work.
Thank you very much
Ps: I'm running FreeBSD 10.2 stable (built 4 days ago) + custom kernel.