0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

Add PIC/PCH condition in stdinc.h.

This commit is contained in:
Jason Volk 2016-08-12 19:41:59 -07:00
parent 1ffc492c7f
commit 0e62b5a91a
3 changed files with 6 additions and 4 deletions

View file

@ -197,6 +197,7 @@ AC_ARG_ENABLE(pch, AC_HELP_STRING([--disable-pch], [Disable precompiled header g
AC_MSG_RESULT([no])
], [
build_pch="yes"
CPPDEFINE([PCH])
AC_MSG_RESULT([yes])
])

View file

@ -21,7 +21,12 @@
*
*/
#if defined(PIC) && defined(PCH)
#include <rb/rb.pic.h>
#else
#include <rb/rb.h>
#endif
#include "util.h"
#include "defaults.h"
#include "fs.h"

View file

@ -11,10 +11,6 @@ AM_CPPFLAGS = \
@LTDLINCL@ \
@BOOST_CPPFLAGS@
if BUILD_PCH
AM_CPPFLAGS += -include $(top_srcdir)/include/rb/rb.pic.h
endif
if MINGW
PLATFORM_LDFLAGS = -Wl,--enable-runtime-pseudo-reloc -export-symbols-regex '*'
endif