Decouple DODEBUG and DOSTATIC
This commit is contained in:
3
Makefile
3
Makefile
@ -93,7 +93,7 @@ else
|
|||||||
CFLAGS += $(WARNINGS) $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE
|
CFLAGS += $(WARNINGS) $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE
|
||||||
LDFLAGS += -s
|
LDFLAGS += -s
|
||||||
STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG)
|
STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG)
|
||||||
#Only staticly link when _not_ debugging
|
endif
|
||||||
ifeq ($(DOSTATIC),true)
|
ifeq ($(DOSTATIC),true)
|
||||||
LDFLAGS += --static
|
LDFLAGS += --static
|
||||||
#
|
#
|
||||||
@ -108,7 +108,6 @@ else
|
|||||||
# LDFLAGS += --gc-sections
|
# LDFLAGS += --gc-sections
|
||||||
#endif
|
#endif
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
ifndef $(PREFIX)
|
ifndef $(PREFIX)
|
||||||
PREFIX = `pwd`/_install
|
PREFIX = `pwd`/_install
|
||||||
|
Reference in New Issue
Block a user