Sfoglia il codice sorgente

Makefile: Fix linker error

Instantiation of the static singleton instance thermalManager in general
requires locking, but we know its safe to do without.

Add -fno-threadsafe-statics to avoid using locking primitives, which
result in linking errors:
	undefined reference to `__cxa_guard_acquire'
	undefined reference to `__cxa_guard_release'

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Stefan Brüns 7 anni fa
parent
commit
ddecc1441d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      Marlin/Makefile

+ 1
- 1
Marlin/Makefile Vedi File

@@ -393,7 +393,7 @@ ifneq ($(HARDWARE_MOTHERBOARD),)
393 393
 CTUNING += -DMOTHERBOARD=${HARDWARE_MOTHERBOARD}
394 394
 endif
395 395
 #CEXTRA = -Wa,-adhlns=$(<:.c=.lst)
396
-CEXTRA = -fno-use-cxa-atexit
396
+CEXTRA = -fno-use-cxa-atexit -fno-threadsafe-statics
397 397
 
398 398
 CFLAGS := $(CDEBUG) $(CDEFS) $(CINCS) -O$(OPT) $(CWARN) $(CEXTRA) $(CTUNING) $(CSTANDARD)
399 399
 CXXFLAGS :=         $(CDEFS) $(CINCS) -O$(OPT) -Wall    $(CEXTRA) $(CTUNING) $(CXXSTANDARD)

Loading…
Annulla
Salva