Skip to content

Commit 3a0af63

Browse files
Merge pull request #132 from AdamOrmondroyd/macosmakefile
-Wl,-z and noexecstack only appropriate for linux
2 parents ceb0baf + f544939 commit 3a0af63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile_gnu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ else
3535
LDLIBS += -lstdc++
3636
endif
3737

38-
LDLIBS += -Wl,-z,noexecstack
3938

4039
detected_OS := $(shell uname -s)
4140
ifeq ($(detected_OS),Darwin)
4241
RPATH=-install_name @loader_path/pypolychord/lib/libchord.so
4342
else
4443
RPATH=
44+
LDLIBS += -Wl,-z,noexecstack
4545
endif
4646

4747
ifeq ($(DEBUG),1)

0 commit comments

Comments
 (0)