mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 02:02:38 +01:00
Add PIC/PCH condition in stdinc.h.
This commit is contained in:
parent
1ffc492c7f
commit
0e62b5a91a
3 changed files with 6 additions and 4 deletions
|
@ -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])
|
||||
])
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue