gpakosz / whereami

Locate the current running executable and the current running module/library on the file system 🔎
MIT License
472 stars 64 forks source link

Changes to allow this compile on RHEL6/CentOS6 #3

Closed ericcurtin closed 8 years ago

ericcurtin commented 8 years ago

pedantic is really what is says on the tin. Won't compile because of this:

/whereami/src/whereami.c:1:1: error: C++ style comments are not allowed in ISO C90

-lstdc++ needed because of linker issue:

cc -x c++ -o /whereami/bin/linux-x86_64/executable-cpp -I /whereami/src -O2 -g -Werror -ldl -fpic /whereami/src/whereami.c /whereami/example/executable.c /tmp/ccqatR1p.o:(.data.DW.ref.gxx_personality_v0[DW.ref.gxx_personality_v0]+0x0): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status

gpakosz commented 8 years ago

Hi, thanks for reporting this problem.

This is not how I would like to alter _gnu-make/Makefile. Could you please try with the wip-rhel6-centos6 branch please before I merge it?

ericcurtin commented 8 years ago

Yes your branch compiles perfectly, thanks @gpakosz