From: Paul Bone Date: Thu, 18 Jan 2018 08:42:05 +0000 (+0300) Subject: Pass CFLAGS_FOR_PIC value to CFLAGS in Makefile.direct X-Git-Tag: v8.0.0~412 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19bc7d942b1bea8cc5584b69fb1fa851b9de64b7;p=platform%2Fupstream%2Flibgc.git Pass CFLAGS_FOR_PIC value to CFLAGS in Makefile.direct (part of commit 91bf29b1a from Mercury-Language/bdwgc) * Makefile.direct (CFLAGS): Add comment. * Makefile.direct (CFLAGS, SPECIALCFLAGS): Add $(CFLAGS_FOR_PIC). --- diff --git a/Makefile.direct b/Makefile.direct index 0b61e53..c73a107 100644 --- a/Makefile.direct +++ b/Makefile.direct @@ -44,9 +44,10 @@ VPATH= $(srcdir) AO_SRC_DIR=$(srcdir)/libatomic_ops CFLAGS_EXTRA= +# We need CFLAGS_FOR_PIC because we might be building a shared library. CFLAGS= -O -I$(srcdir)/include -I$(AO_SRC_DIR)/src \ -DGC_ATOMIC_UNCOLLECTABLE -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS \ - -DENABLE_DISCLAIM $(CFLAGS_EXTRA) + -DENABLE_DISCLAIM $(CFLAGS_FOR_PIC) $(CFLAGS_EXTRA) # To build the collector with threads support, add to the above: # -DGC_THREADS -DPARALLEL_MARK -DTHREAD_LOCAL_ALLOC @@ -133,7 +134,7 @@ CURSES= -lcurses # the SHELL environment variable. SHELL= /bin/sh -SPECIALCFLAGS= -I$(srcdir)/include -I$(AO_SRC_DIR)/src +SPECIALCFLAGS= -I$(srcdir)/include -I$(AO_SRC_DIR)/src $(CFLAGS_FOR_PIC) # Alternative flags to the C compiler for mach_dep.c. # Mach_dep.c often doesn't like optimization, and it's # not time-critical anyway.