shithub: libmujs

Download patch

ref: 4c53c271f1056c933dc40d9799c4443a2285610d
parent: c8934909e072db256debe9f3a28f4451b1844603
author: Tor Andersson <tor.andersson@artifex.com>
date: Wed Jun 21 09:46:29 EDT 2017

Only strip linked binaries in release mode.

--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@
 
 ifeq "$(shell uname)" "Linux"
 CFLAGS += -ffunction-sections -fdata-sections
-LDFLAGS += -Wl,--gc-sections -Wl,-s
+LDFLAGS += -Wl,--gc-sections
 endif
 
 ifeq "$(build)" "debug"
@@ -29,6 +29,7 @@
 LDFLAGS += -fsanitize=address
 else
 CFLAGS += -Os
+LDFLAGS += -Wl,-s
 endif
 
 # You shouldn't need to edit anything below here.