eina_module: fix ASan build error 50/188650/2
authorYeongjong Lee <yj34.lee@samsung.com>
Fri, 7 Sep 2018 04:20:53 +0000 (13:20 +0900)
committerYeongJong Lee <yj34.lee@samsung.com>
Fri, 7 Sep 2018 06:57:16 +0000 (06:57 +0000)
Test Plan:

gbs build with --extra-packs asan-force-options option.

Change-Id: I9ed85ea82fa295c4156c5a1bd42e63bf05353d4c

TC/eina/eina_module/Makefile
TC/eina/eina_module/eina_module_dummy.c
TC/eina/eina_module/eina_module_dummy2.c

index 6c26ffb862c182b760fb1063ada072574516d6f6..3d15cb2e11039d8a449a836658c1d453a83c0763 100644 (file)
@@ -47,9 +47,9 @@ clean:
        rm -f $(TCS) libdummy2.a eina_module_dummy2.o libdummy2.so.1.0.1
 
 eina_module_dummy.o: eina_module_dummy.c
-       $(CC) -c -o $@ $< $(CFLAGS)
+       $(CC) -fPIC -c -o $@ $< $(CFLAGS)
 eina_module_dummy2.o: eina_module_dummy2.c
-       $(CC) -c -o $@ $< $(CFLAGS)
+       $(CC) -fPIC -c -o $@ $< $(CFLAGS)
 
 libdummy.a: eina_module_dummy.o
        libtool --mode=link gcc -o $@ $<
index 9e834b9bb4abbf9b04e200be46048505e240bcad..1025b296629bb0bd46823443e9ece57c636b4ea2 100644 (file)
@@ -14,7 +14,6 @@
 // limitations under the License.
 //
 #include <Eina.h>
-#include "../utc_eina_common.h"
 #include <stdio.h>
 
 Eina_Bool dummy_module_init(void)
index c7f16b3a141d8e6b6b33332aa4015bdbf27546c9..cb9a695987d82890b6753ecf3ac8a068188674d6 100644 (file)
@@ -14,7 +14,6 @@
 // limitations under the License.
 //
 #include <Eina.h>
-#include "../utc_eina_common.h"
 #include <stdio.h>
 
 Eina_Bool dummy_sec_module_init(void)