Bug 49360 - Build: gen_matypes does not use $HOST_LDFLAGS
Summary: Build: gen_matypes does not use $HOST_LDFLAGS
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: Other All
: medium minor
Assignee: mesa-dev
QA Contact:
Depends on:
Reported: 2012-05-01 20:07 UTC by bugs-fdo@spamgourmet.com
Modified: 2019-09-18 20:17 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description bugs-fdo@spamgourmet.com 2012-05-01 20:07:54 UTC
In mesa-7.11.2, but still present in the current HEAD of 83a02427e576a5126a618c13bc3e12ff2b4a3e0a, src/mesa/x86/Makefile has a rule to build a helper program gen_matypes, which is then run on the build host:

gen_matypes: gen_matypes.c
	$(HOST_CC) $(ARCH_FLAGS) $(INCLUDE_DIRS) $(HOST_CFLAGS) gen_matypes.c -o gen_matypes

However, this rule does not include a reference to $(HOST_LDFLAGS).  In some setups, such as the one where I noticed this, a successful link requires the flags that are specified in $(HOST_LDFLAGS).  Omitting that reference causes the link to fail.  Please consider changing the recipe to read:

	$(HOST_CC) $(ARCH_FLAGS) $(INCLUDE_DIRS) $(HOST_CFLAGS) $(HOST_LDFLAGS) gen_matypes.c -o gen_matypes
Comment 1 GitLab Migration User 2019-09-18 20:17:02 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/898.

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.