Bug 28179 - GLUT_CFLAGS not used when building glut
Summary: GLUT_CFLAGS not used when building glut
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: GLUT (show other bugs)
Version: 7.6
Hardware: All All
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-19 12:52 UTC by John Hein
Modified: 2010-07-01 13:03 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
let the GLUT_CLAGS that autoconf/pkg-config fill in actually get used (1.62 KB, application/octet-stream)
2010-05-19 12:52 UTC, John Hein
Details

Description John Hein 2010-05-19 12:52:31 UTC
Created attachment 35764 [details]
let the GLUT_CLAGS that autoconf/pkg-config fill in actually get used

I got this...

glut_cmap.c:23:66: error: X11/Xmu/StdCmap.h: No such file or directory

... when building glut.

I didn't have libXmu installed in a default place (/usr or /usr/local), but pkg-config --cflags emits the correct paths.

However, the configure machinery in MesaGLUT-7.6.1 is defeating its own attempts to find libXmu.

The attached patch lets GLUT_CFLAGS that configure & pkg-config work so hard to set actually get used.


This was found on FreeBSD, but I believe it's not specific to that or other OS.  It applies to any xorg installation that is using the pkg-config system for enumerating cflags during 'configure'.
Comment 1 Dan Nicholson 2010-07-01 13:03:44 UTC
Applied on master and 7.8. Thanks for fixing that.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.