Blame 0001-Use-CFLAGS-and-LDFLAGS-specified-in-environment-vari.patch
|
|
3ca2952 |
From c321b9a6640b74980f03b45d9dbd8067d279d3c0 Mon Sep 17 00:00:00 2001
|
|
|
3ca2952 |
From: Tom Stellard <tstellar@redhat.com>
|
|
|
3ca2952 |
Date: Mon, 12 Feb 2018 07:56:20 -0800
|
|
|
3ca2952 |
Subject: [PATCH] Use CFLAGS and LDFLAGS specified in environment variables
|
|
|
3ca2952 |
|
|
|
3ca2952 |
---
|
|
|
3ca2952 |
CMakeLists.txt | 4 ++--
|
|
|
3ca2952 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
3ca2952 |
|
|
|
3ca2952 |
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
|
3ca2952 |
index bc8ce50..75f5339 100644
|
|
|
3ca2952 |
--- a/CMakeLists.txt
|
|
|
3ca2952 |
+++ b/CMakeLists.txt
|
|
|
3ca2952 |
@@ -52,12 +52,12 @@ set ( BUILD_VERSION_STRING "${BUILD_VERSION_MAJOR}.${BUILD_VERSION_MINOR}.${BUIL
|
|
|
3ca2952 |
set ( CMAKE_VERBOSE_MAKEFILE on )
|
|
|
3ca2952 |
|
|
|
3ca2952 |
## Compiler flags
|
|
|
3ca2952 |
-set ( CMAKE_C_FLAGS "-fPIC -W -Wall -Wextra -Werror -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wlogical-op -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden -O2" )
|
|
|
3ca2952 |
+set ( CMAKE_C_FLAGS "-fPIC -W -Wall -Wextra -Werror -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wlogical-op -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden -O2 $ENV{CFLAGS}" )
|
|
|
3ca2952 |
|
|
|
3ca2952 |
set ( HSAKMT_LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/src/libhsakmt.ver" )
|
|
|
3ca2952 |
|
|
|
3ca2952 |
## Linker Flags
|
|
|
3ca2952 |
-set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,--version-script=${HSAKMT_LINKER_SCRIPT} -Wl,-soname=${HSAKMT_COMPONENT}.so.$(VERSION_MAJOR) -Wl,-z,nodelete" )
|
|
|
3ca2952 |
+set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,--version-script=${HSAKMT_LINKER_SCRIPT} -Wl,-soname=${HSAKMT_COMPONENT}.so.$(VERSION_MAJOR) -Wl,-z,nodelete $ENV{LDFLAGS}" )
|
|
|
3ca2952 |
|
|
|
3ca2952 |
## Source files
|
|
|
3ca2952 |
set ( HSAKMT_SRC ${HSAKMT_SRC} src/debug.c )
|
|
|
3ca2952 |
--
|
|
|
3ca2952 |
2.13.6
|
|
|
3ca2952 |
|