From 67d98aa280b5dc7b7be4ffdb1bfbde4745a7241a Mon Sep 17 00:00:00 2001 From: Kent Russell Date: Fri, 30 Oct 2015 14:05:40 -0400 Subject: [PATCH] Add option to create release build for Thunk By adding REL=1 to the make command line (e.g. make REL=1 deb), we can create a release build of the Thunk. This will not affect existing functionality, and will only have an effect if REL=1 is specified on the command line, or in the build_thunk.sh script. Change-Id: Iedc3b6094e70a4ebd726499eda56013cc254b83d [ROCm/ROCR-Runtime commit: cb3a6640655e10fcbf48e2622ac14702188b1794] --- projects/rocr-runtime/src/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/projects/rocr-runtime/src/Makefile b/projects/rocr-runtime/src/Makefile index c65c41aacf..03ce54e07e 100644 --- a/projects/rocr-runtime/src/Makefile +++ b/projects/rocr-runtime/src/Makefile @@ -13,7 +13,12 @@ CFLAGS += -Wformat-security -Wswitch-default -Wundef \ -Wlogical-op -Wstrict-prototypes -Wmissing-prototypes \ -Wmissing-declarations -Wredundant-decls \ -Wunreachable-code -CFLAGS += -std=gnu99 -ggdb -pthread -fvisibility=hidden -O2 +CFLAGS += -std=gnu99 -pthread -fvisibility=hidden -O2 + +# If this is not a release build, add debug-specific flags +ifneq ($(REL),1) + CFLAGS += -ggdb +endif LDFLAGS += -lrt -pthread -Wl,--version-script=libhsakmt.ver -Wl,-soname=$(LIB_NAME).$(LIB_MAJOR_VER)