Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
Add PIC/PCH condition in stdinc.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
jevolk committed Aug 13, 2016
1 parent 1ffc492 commit 0e62b5a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions configure.ac
Expand Up @@ -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])
])

Expand Down
5 changes: 5 additions & 0 deletions include/ircd/stdinc.h
Expand Up @@ -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"
4 changes: 0 additions & 4 deletions ircd/Makefile.am
Expand Up @@ -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
Expand Down

0 comments on commit 0e62b5a

Please sign in to comment.