Tom Hughes ba4f330105 Build the arch, os and platform libraries as PIE code if PIE is
enabled as they get linked into stage2 which is the PIE part.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3472
2005-03-29 08:09:31 +00:00

21 lines
367 B
Makefile

include $(top_srcdir)/Makefile.all.am
include $(top_srcdir)/Makefile.core-AM_CPPFLAGS.am
AM_CFLAGS = $(WERROR) -Wmissing-prototypes -Winline -Wall -Wshadow -O -g
noinst_HEADERS = \
core_os.h
noinst_LIBRARIES = libos.a
libos_a_SOURCES = \
core_os.c \
sema.c \
syscalls.c
if USE_PIE
libos_a_CFLAGS = $(AM_CFLAGS) -fpie
else
libos_a_CFLAGS = $(AM_CFLAGS)
endif