Closed yurivict closed 1 year ago
Mr. Poldy please help us.
I modified opengl.lsp added -L option.
(c-include "<GL/glut.h>") (c-option "-lglut -lGLU -lGL -L/usr/local/include/")
Please try again.
Sorry it took ages until I had time to look at this. I'm able to reproduce the problem on macOS, but I don't know much about glut and on macOS it seems to depend on X-Windows, which I don't use. I did notice from the ticket description that there is a false assumption: the CFLAGS and LDFLAGS environment variables are used by make, but not by eisl when compiling. I have submitted an experimental PR #241 to implement this, but I'll leave it up to you whether you think it's a good idea or not, I'm not sure. Hopefully this will help.
Mt. poldy Thank you for your advice.
This problem is still present in 2.72
Why -isystem /usr/local/include
instead of the normal -I /usr/local/include
?
Why -isystem /usr/local/include instead of the normal -I /usr/local/include?
Compilers allow to use -isystem
for system header locations.
CFLAGS has proper flags:
CFLAGS=-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing
.GL/glut.h
is present:But the build fails to find it.