Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP4:GA
intel-gpu-tools
u_respect_cflags.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File u_respect_cflags.diff of Package intel-gpu-tools
From: Jan Engelhardt <jengelh@inai.de> Date: 2017-02-05 13:15:36.359677297 +0100 Subject: build: resolve build error due to improper CFLAGS 1. intel-gpu-tools failed to use LIBKMOD_CFLAGS, which can lead to build errors if libkmod is in a non-default location. 2. CFLAGS obtained from pkg-config are really CPPFLAGS and should go there (AM_CPPFLAGS). 3. The target-specific CFLAGS overrides are unnecessary, since there are no conflicting settings obtained from pkg-config. --- tests/Makefile.am | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) Index: igt-gpu-tools-1.24/tests/Makefile.am =================================================================== --- igt-gpu-tools-1.24.orig/tests/Makefile.am +++ igt-gpu-tools-1.24/tests/Makefile.am @@ -70,16 +70,18 @@ EXTRA_PROGRAMS = $(HANG) CLEANFILES = $(EXTRA_PROGRAMS) test-list.txt test-list-full.txt .gitignore -AM_CFLAGS = $(CWARNFLAGS) -Wno-unused-result $(DEBUG_CFLAGS)\ - -I$(top_srcdir)/include/drm-uapi \ +AM_CPPFLAGS = -I$(top_srcdir)/include/drm-uapi \ -I$(srcdir)/.. \ -I$(srcdir)/../lib \ -I$(top_srcdir)/lib/stubs/syscalls \ -include "$(srcdir)/../lib/check-ndebug.h" \ + $(CAIRO_CFLAGS) $(DRM_CFLAGS) $(DRM_NOUVEAU_CFLAGS) $(DRM_VC4_CFLAGS) \ + $(GLIB_CFLAGS) $(KMOD_CFLAGS) $(LIBUDEV_CFLAGS) $(LIBUNWIND_CFLAGS) \ -DIGT_SRCDIR=\""$(abs_srcdir)"\" \ -DIGT_DATADIR=\""$(pkgdatadir)"\" \ - -D_GNU_SOURCE \ - $(DRM_CFLAGS) $(LIBUNWIND_CFLAGS) $(WERROR_CFLAGS) \ + -D_GNU_SOURCE +AM_CFLAGS = $(CWARNFLAGS) -Wno-unused-result $(DEBUG_CFLAGS)\ + $(WERROR_CFLAGS) \ $(NULL) LDADD = ../lib/libintel_tools.la $(XMLRPC_LIBS) @@ -125,11 +127,8 @@ perf_pmu_LDADD = $(LDADD) $(top_builddir kms_flip_LDADD = $(LDADD) -lpthread -prime_nv_test_CFLAGS = $(AM_CFLAGS) $(DRM_NOUVEAU_CFLAGS) prime_nv_test_LDADD = $(LDADD) $(DRM_NOUVEAU_LIBS) -prime_nv_api_CFLAGS = $(AM_CFLAGS) $(DRM_NOUVEAU_CFLAGS) prime_nv_api_LDADD = $(LDADD) $(DRM_NOUVEAU_LIBS) -prime_nv_pcopy_CFLAGS = $(AM_CFLAGS) $(DRM_NOUVEAU_CFLAGS) prime_nv_pcopy_LDADD = $(LDADD) $(DRM_NOUVEAU_LIBS) kms_chamelium_CFLAGS = $(AM_CFLAGS) $(XMLRPC_CFLAGS) $(LIBUDEV_CFLAGS) $(ALSA_CFLAGS)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor