t-sco5 revision 90075
190075Sobrien# We need to use -fPIC when we are using gcc to compile the routines in
290075Sobrien# crtstuff.c.  This is only really needed when we are going to use gcc/g++
390075Sobrien# to produce a shared library, but since we don't know ahead of time when
490075Sobrien# we will be doing that, we just always use -fPIC when compiling the
590075Sobrien# routines in crtstuff.c.  Likewise for libgcc2.c.   This is less painful
690075Sobrien# than multilibbing everything with PIC and PIC-not variants.
790075Sobrien
850397Sobrien# The pushl in CTOR initialization interferes with frame pointer elimination.
990075Sobrien
1050397SobrienCRTSTUFF_T_CFLAGS   = -fPIC -fno-omit-frame-pointer
1190075SobrienTARGET_LIBGCC2_CFLAGS = -fPIC
1250397Sobrien
1350397Sobriencrti.o: $(srcdir)/config/i386/sol2-ci.asm $(GCC_PASSES)
1450397Sobrien	sed -e '/^!/d' <$(srcdir)/config/i386/sol2-ci.asm >crti.s
1550397Sobrien	$(GCC_FOR_TARGET) -c -o crti.o crti.s
1690075Sobrien
1790075Sobrien# See all the declarations.
1890075SobrienFIXPROTO_DEFINES = -D_XOPEN_SOURCE -D_POSIX_C_SOURCE=2
19