Skip to content

Commit

Permalink
Remove leftover "-s" flags and raise debug level
Browse files Browse the repository at this point in the history
Some binaries still had "-s" in their Makefiles which
prevented them from being built with debug symbols.
For non-debug builds the symbols are stripped in
a seperate step.
  • Loading branch information
tGecko committed Jul 2, 2023
1 parent e8c9964 commit c077c45
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/axp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include ../common/config.mk

TARGET = axp
CFLAGS := $(CFLAGS) -Os -ffunction-sections -fdata-sections -Wall
LDFLAGS := $(LDFLAGS) -Wl,--gc-sections -s
LDFLAGS := $(LDFLAGS) -Wl,--gc-sections

include ../common/commands.mk
include ../common/recipes.mk
2 changes: 1 addition & 1 deletion src/batmon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE_SHMVAR=1
include ../common/config.mk

TARGET = batmon
LDFLAGS := $(LDFLAGS) -s -pthread
LDFLAGS := $(LDFLAGS) -pthread

include ../common/commands.mk
include ../common/recipes.mk
2 changes: 1 addition & 1 deletion src/bootScreen/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ INCLUDE_SHMVAR=1
include ../common/config.mk

TARGET = bootScreen
LDFLAGS := $(LDFLAGS) -s -lSDL -lSDL_image -lSDL_ttf -lSDL_mixer
LDFLAGS := $(LDFLAGS) -lSDL -lSDL_image -lSDL_ttf -lSDL_mixer

include ../common/commands.mk
include ../common/recipes.mk
2 changes: 1 addition & 1 deletion src/chargingState/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE_CJSON=1
include ../common/config.mk

TARGET = chargingState
LDFLAGS := $(LDFLAGS) -s -lSDL -lSDL_image -lSDL_ttf
LDFLAGS := $(LDFLAGS) -lSDL -lSDL_image -lSDL_ttf

include ../common/commands.mk
include ../common/recipes.mk
2 changes: 1 addition & 1 deletion src/common/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ OFILES = $(CFILES:.c=.o) $(CPPFILES:.cpp=.o)
CFLAGS := -I../../include -I../common -DPLATFORM_$(shell echo $(PLATFORM) | tr a-z A-Z) -DONION_VERSION="\"$(VERSION)\"" -Wall

ifeq ($(DEBUG),1)
CFLAGS := $(CFLAGS) -DLOG_DEBUG -g
CFLAGS := $(CFLAGS) -DLOG_DEBUG -g3
endif

ifeq ($(TEST),1)
Expand Down
2 changes: 1 addition & 1 deletion src/easter/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include ../common/config.mk

TARGET = easter
LDFLAGS := $(LDFLAGS) -s -lSDL -lSDL_image -lSDL_ttf -lSDL_mixer
LDFLAGS := $(LDFLAGS) -lSDL -lSDL_image -lSDL_ttf -lSDL_mixer

include ../common/commands.mk
include ../common/recipes.mk
2 changes: 1 addition & 1 deletion src/jpg2png/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CFILES = $(foreach dir, $(SOURCES), $(wildcard $(dir)/*.c))
OFILES = $(CFILES:.c=.o)

CFLAGS = -Os $(ARCH) -ffunction-sections -fdata-sections -Wall
LDFLAGS = $(ARCH) -lmi_sys -lmi_gfx -lpng -Wl,-Bstatic -ljpeg -Wl,-Bdynamic -s
LDFLAGS = $(ARCH) -lmi_sys -lmi_gfx -lpng -Wl,-Bstatic -ljpeg -Wl,-Bdynamic

$(TARGET): $(OFILES)
$(CC) $(OFILES) -o $@ $(LDFLAGS)
Expand Down
2 changes: 1 addition & 1 deletion src/keymon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include ../common/config.mk

TARGET = keymon
CFLAGS := $(CFLAGS) -Os -ffunction-sections -fdata-sections
LDFLAGS := $(LDFLAGS) -lpthread -lpng -Wl,--gc-sections -s
LDFLAGS := $(LDFLAGS) -lpthread -lpng -Wl,--gc-sections

include ../common/commands.mk
include ../common/recipes.mk
2 changes: 1 addition & 1 deletion src/packageManager/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE_CJSON=1
include ../common/config.mk

TARGET = packageManager
LDFLAGS := $(LDFLAGS) -s -lSDL -lSDL_image -lSDL_ttf
LDFLAGS := $(LDFLAGS) -lSDL -lSDL_image -lSDL_ttf

include ../common/commands.mk
include ../common/recipes.mk
2 changes: 1 addition & 1 deletion src/playActivity/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include ../common/config.mk

TARGET = playActivity
LDFLAGS := $(LDFLAGS) -s -lsqlite3
LDFLAGS := $(LDFLAGS) -lsqlite3

include ../common/commands.mk
include ../common/recipes.mk
2 changes: 1 addition & 1 deletion src/playActivityUI/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include ../common/config.mk

TARGET = playActivityUI
LDFLAGS := $(LDFLAGS) -s -lSDL -lSDL_image -lSDL_ttf -lsqlite3
LDFLAGS := $(LDFLAGS) -lSDL -lSDL_image -lSDL_ttf -lsqlite3

include ../common/commands.mk
include ../common/recipes.mk
2 changes: 1 addition & 1 deletion src/pngScale/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE_SHMVAR=1
include ../common/config.mk

TARGET = pngScale
LDFLAGS := $(LDFLAGS) -lSDL -lmi_sys -lmi_gfx -lpng -s
LDFLAGS := $(LDFLAGS) -lSDL -lmi_sys -lmi_gfx -lpng

include ../common/commands.mk
include ../common/recipes.mk
2 changes: 1 addition & 1 deletion src/randomGamePicker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE_CJSON=1
include ../common/config.mk

TARGET = randomGamePicker
LDFLAGS := $(LDFLAGS) -s -lsqlite3
LDFLAGS := $(LDFLAGS) -lsqlite3

include ../common/commands.mk
include ../common/recipes.mk
2 changes: 1 addition & 1 deletion src/themeSwitcher/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE_CJSON=1
include ../common/config.mk

TARGET = themeSwitcher
LDFLAGS := $(LDFLAGS) -s -lSDL -lSDL_image -lSDL_ttf
LDFLAGS := $(LDFLAGS) -lSDL -lSDL_image -lSDL_ttf

include ../common/commands.mk
include ../common/recipes.mk

0 comments on commit c077c45

Please sign in to comment.