Skip to content

Commit

Permalink
Enable link time optimization (#75)
Browse files Browse the repository at this point in the history
Co-authored-by: sergei sh <[email protected]>
  • Loading branch information
mngr777 and sergei sh authored Aug 23, 2022
1 parent 9edceda commit 20882d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ EXTRA_CLEAN += \

# PGXS boilerplate
PG_CONFIG = pg_config
CUSTOM_COPT=-flto -mpc64
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)

Expand All @@ -81,7 +82,7 @@ $(LIBH3_BUILD): $(LIBH3_SOURCE)
mkdir -p $(LIBH3_BUILD)
cd $(LIBH3_BUILD) && cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS=-fPIC \
-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden -flto -fwrapv -mpc64" \
-DBUILD_TESTING=OFF \
-DENABLE_COVERAGE=OFF \
-DENABLE_DOCS=OFF \
Expand Down

0 comments on commit 20882d9

Please sign in to comment.