From edca80e1a7bdd614fd1fc347cf4950fb5d1b27a6 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Sat, 2 Feb 2019 23:36:35 +1000 Subject: [PATCH] Extend glew.pc output to mention GL linking (-framework on OSX) --- Makefile | 1 + glew.pc.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a54b92a..16dd008 100644 --- a/Makefile +++ b/Makefile @@ -149,6 +149,7 @@ glew.pc: glew.pc.in -e "s|@version@|$(GLEW_VERSION)|g" \ -e "s|@cflags@||g" \ -e "s|@libname@|$(NAME)|g" \ + -e "s|@libgl@|$(LDFLAGS.GL)|g" \ -e "s|@requireslib@|$(LIBGLU)|g" \ < $< > $@ diff --git a/glew.pc.in b/glew.pc.in index 6d3d070..a892540 100644 --- a/glew.pc.in +++ b/glew.pc.in @@ -7,5 +7,5 @@ Name: glew Description: The OpenGL Extension Wrangler library Version: @version@ Cflags: -I${includedir} @cflags@ -Libs: -L${libdir} -l@libname@ +Libs: -L${libdir} -l@libname@ @libgl@ Requires: @requireslib@