-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not use CXX #18
Comments
That seems reasonable, do you have a reference of best practices I can refer to? |
@kbranigan of course https://stackoverflow.com/questions/5541946/cflags-ccflags-cxxflags-what-exactly-do-these-variables-control the goal is to let you do stuff like |
@kbranigan While not perfect, I adapt mine https://github.com/Lecrapouille/SOIL/blob/master/Makefile |
Are you interested in doing a pull request? I'm up for incorporating your changes |
@kbranigan here is the PR. Sorry for the long delay: I messed up myself I've already forked this project with different name but could not fork it again, so I used my organization name (but I should have used a branch) ... anyway. The |
CXX = gcc is not a good idea because: 1/ We cannot override options like: make CC=clang-13 CFLAGS="-O2 -s -Wall -fPIC" -j8 2/ CXX is for g++ and overriding will fail compiling the project. 3/ CC is by default equals to cc (gcc)
CXX = gcc is not a good idea because: 1/ We cannot override options like: make CC=clang-13 CFLAGS="-O2 -s -Wall -fPIC" -j8 2/ CXX is for g++ and overriding will fail compiling the project. 3/ CC is by default equals to cc (gcc)
Fix CXX and CXXFLAGS are for g++ and this is a C project #18
In
Simple-OpenGL-Image-Library/Makefile
Line 16 in 4fff135
and in Makefile:
Simple-OpenGL-Image-Library/Makefile
Line 42 in 4fff135
CXX is for g++ should be CC and CFLAGS and better to use
?=
This can conflict when doing make CXX=g++
The text was updated successfully, but these errors were encountered: