Skip to content

Commit 11e7e66

Browse files
committed
gold linker on command
1 parent 863a169 commit 11e7e66

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

libs/openFrameworksCompiled/project/linux/64/config.linux64.default.mk

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,9 @@
2727

2828
include $(OF_SHARED_MAKEFILES_PATH)/config.linux.common.mk
2929

30-
PLATFORM_LDFLAGS += -fuse-ld=gold
31-
30+
ifneq ($(shell command -v ld.gold),)
31+
PLATFORM_LDFLAGS += -fuse-ld=gold
32+
$(info Using Gold linker.)
33+
else
34+
$(info Gold linker not found. Using default linker.)
35+
endif

0 commit comments

Comments
 (0)