Skip to content

Commit f26d109

Browse files
nalimilanstaticfloat
authored andcommitted
Only do this on Linux
1 parent f01deb8 commit f26d109

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Make.inc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@ else
3535
endif
3636

3737
LBT_CFLAGS := -g -O2 -std=c99 -fPIC -DLIBRARY_EXPORTS -D_GNU_SOURCE $(CFLAGS)
38-
# Linker doesn't detect automatically executable stack isn't needed
39-
LBT_LDFLAGS := $(LDFLAGS) -Wl,-z,noexecstack
4038

4139
ifeq ($(OS),Linux)
4240
# On linux, we need to link `libdl` to get `dlopen`
43-
LBT_LDFLAGS += -ldl
41+
# and linker doesn't detect automatically executable stack isn't needed
42+
LBT_LDFLAGS += -ldl -Wl,-z,noexecstack
4443
endif
4544

4645
ifeq ($(OS),WINNT)

0 commit comments

Comments
 (0)