Skip to content

Commit 5fef714

Browse files
committed
build: Do not export symbols from compiled ARM assembly
1 parent 427bc3c commit 5fef714

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile.am

+3
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ libsecp256k1_la_SOURCES = src/secp256k1.c
9898
libsecp256k1_la_CPPFLAGS = $(SECP_CONFIG_DEFINES)
9999
libsecp256k1_la_LIBADD = $(COMMON_LIB) $(PRECOMPUTED_LIB)
100100
libsecp256k1_la_LDFLAGS = -no-undefined -version-info $(LIB_VERSION_CURRENT):$(LIB_VERSION_REVISION):$(LIB_VERSION_AGE)
101+
if USE_ASM_ARM
102+
libsecp256k1_la_LDFLAGS += -Wl,--exclude-libs,libsecp256k1_common.a
103+
endif
101104

102105
noinst_PROGRAMS =
103106
if USE_BENCHMARK

0 commit comments

Comments
 (0)