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@