From 899d47a2f3eb05086c33087498383cb3c3baf18a Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Tue, 29 Jan 2019 22:06:17 +1000 Subject: [PATCH] FreeBSD build fixup to use X11 from /usr/local --- config/Makefile.freebsd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/Makefile.freebsd b/config/Makefile.freebsd index 4fb9b6a..0ef81ce 100644 --- a/config/Makefile.freebsd +++ b/config/Makefile.freebsd @@ -1,11 +1,13 @@ +# As of FreeBSD12 X11 is in /usr/local + NAME = $(GLEW_NAME) CC = cc LD = ld -LDFLAGS.EXTRA = -L/usr/X11R6/lib +LDFLAGS.EXTRA = -L/usr/local/lib LDFLAGS.GL = -lGL -lX11 LDFLAGS.STATIC = -Wl,-Bstatic LDFLAGS.DYNAMIC = -Wl,-Bdynamic -CFLAGS.EXTRA += -I/usr/X11R6/include -fPIC +CFLAGS.EXTRA += -I/usr/local/include -fPIC NAME = GLEW WARN = -Wall -W POPT = -O2