Add armoring option 86/301086/1 accepted/tizen_base accepted/tizen_base_asan accepted/tizen_base_riscv tizen_base accepted/tizen/base/20231108.225821 accepted/tizen/base/asan/20240422.014853 accepted/tizen/base/riscv/20231123.094512
authorjiyong.min <jiyong.min@samsung.com>
Wed, 8 Nov 2023 02:33:51 +0000 (11:33 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Wed, 8 Nov 2023 05:43:31 +0000 (05:43 +0000)
Change-Id: I37fb8f14c386bd5e85bc75e86657c8902792cc4e

Makefile
packaging/giflib.spec

index 0cfa407..7498a7d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,10 @@
 OFLAGS = -O0 -g
 OFLAGS  = -O2
 CFLAGS  = -std=gnu99 -fPIC -Wall -Wno-format-truncation $(OFLAGS)
+ifeq ($(__TIZEN__),true)
+CFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong
+LDFLAGS = -Wl,-z,relro
+endif
 
 SHELL = /bin/sh
 TAR = tar
index 22fd71f..05be2fc 100644 (file)
@@ -2,7 +2,7 @@
 %bcond_with x
 Name:           giflib
 Version:        5.2.1
-Release:        0
+Release:        1
 License:        MIT
 Summary:        Library for manipulating GIF format image files
 Url:            http://sourceforge.net/projects/giflib/
@@ -58,7 +58,7 @@ You'll also need to install the giflib package.
 cp %{SOURCE1001} .
 
 %build
-make libgif.so libutil.so DESTDIR=$RPM_BUILD_ROOT PREFIX=/usr LIBDIR=%{_libdir}
+make libgif.so libutil.so DESTDIR=$RPM_BUILD_ROOT PREFIX=/usr LIBDIR=%{_libdir} __TIZEN__=true
 
 %install
 make install-lib install-include install-bin DESTDIR=$RPM_BUILD_ROOT PREFIX=/usr LIBDIR=%{_libdir}