Makefile requires editing and GCC to compile on Mavericks
Closed this issue · 2 comments
winny- commented
Hi! Wanted to document how to compile on Mavericks.
-
Install Homebrew
-
Install gcc
-
Edit the Makefile so it looks something like this diff
diff --git a/Makefile b/Makefile index 5a4b4dd..7d25104 100644 --- a/Makefile +++ b/Makefile @@ -38,17 +38,17 @@ endif ifndef WINDOWS OPTIMIZE ?= -CXX = g++ -g -Wall -Wno-write-strings -Wno-non-virtual-dtor -fno-default-inline -fno-omit-frame-pointer -ffloat-store +CXX = g++-4.8 -g -Wall -Wno-write-strings -Wno-non-virtual-dtor -fno-default-inline -fno-omit-frame-pointer -ffloat-store CXXOUTPUT = -o ifndef MAC -LD = g++ -g -static +LD = g++-4.8 -g -static else ifndef PPC -CXX += -arch i386 -LD = g++ -arch i386 +#CXX += -arch i386 +LD = g++-4.8 else -CXX += -arch i386 -arch ppc -LD = g++ -arch i386 -arch ppc +#CXX += -arch i386 -arch ppc +LD = g++-4.8 endif endif LDOUTPUT = -o
-
Optionally run the following commands to install into Homebrew
mkdir -p /usr/local/Cellar/lslint/0.4.2-m1/{bin,share} cp lslint /usr/local/Cellar/lslint/0.4.2-m1/bin/ cp -r scripts /usr/local/Cellar/lslint/0.4.2-m1/share/lslint/ brew link lslint
Makopo commented
I confirmed the issue on my Mavericks.
I fixed the makefile so that you can compile without installing any other gcc.
I simply omitted "-fno-default-inline" which has no significant effect on compiling nor running.
If you find any problem on this, please notify again.
winny- commented
Yes is fixed on my end. Looks like -fno-default-inline
was the only text that needed changing. Thanks!