vk: Don't override and hardcode autoconf CFLAGS
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Sat, 5 Dec 2015 01:18:16 +0000 (17:18 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Sat, 5 Dec 2015 05:24:15 +0000 (21:24 -0800)
To disable optimizations pass CFLAGS="-O0 -g" on the configure command
line.

src/vulkan/Makefile.am

index 7c108e4b1457c2b3f252e54ec5732241afe273cc..2e70fef6fb114cb7213ca635ea2e7ec15c9eb3ae 100644 (file)
@@ -65,9 +65,7 @@ AM_CPPFLAGS = \
        -I$(top_builddir)/src/glsl/nir \
        -I$(top_builddir)/src/vulkan
 
-libvulkan_la_CFLAGS =                                                  \
-       -Wall -Wno-unused-parameter -fvisibility=hidden -O0 -g          \
-       -Wstrict-prototypes -Wmissing-prototypes -Wno-override-init
+libvulkan_la_CFLAGS = $(CFLAGS) -Wno-override-init
 
 VULKAN_SOURCES =                                        \
        anv_allocator.c                                 \