sasagawa888 / eisl

ISLisp interpreter/compiler
Other
272 stars 22 forks source link

CFLAGS is ignored when the C compiler is called #231

Closed yurivict closed 1 year ago

yurivict commented 1 year ago

Error:

invoke CC
library/opengl0.c:2:10: fatal error: 'GL/glut.h' file not found
#include <GL/glut.h>
         ^~~~~~~~~~~
1 error generated.

This is because CFLAGS passed to make was ignored.

FreeBSD 13.1

sasagawa888 commented 1 year ago

Do you have GLUT installed?

yurivict commented 1 year ago

Yes. But it requires special flags in CFLAGS.

poldy commented 1 year ago

I opened PR #233 for this. Please try it out.

It's conventional to always append (using +=) to the values of CFLAGS & LDFLAGS in make.

sasagawa888 commented 1 year ago

Thank you.