Browse Source

add -fvisibility=hidden, because boost seems to be compiled with this flag, too. At least on my MacOS.

pull/1/head
roker 2 years ago
parent
commit
6e7748872e
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      Makefile

+ 4
- 4
Makefile View File

@ -16,11 +16,11 @@ CXXFLAGS+=-I$(BOOST_INCLUDE) -std=c++11
LDFLAGS+=$(BOOST_LIB)/libboost_regex.a $(BOOST_LIB)/libboost_filesystem.a
ifdef NDEBUG
CFLAGS+=-O3 -DNDEBUG
CXXFLAGS+=-O3 -DNDEBUG
CFLAGS+=-O3 -DNDEBUG -fvisibility=hidden
CXXFLAGS+=-O3 -DNDEBUG -fvisibility=hidden
else
CFLAGS+=-O0 -g
CXXFLAGS+=-O0 -g
CFLAGS+=-O0 -g -fvisibility=hidden
CXXFLAGS+=-O0 -g -fvisibility=hidden
endif
TARGET=libpEpwebserver.a


Loading…
Cancel
Save