summaryrefslogtreecommitdiff
path: root/system/gettext-tiny/dynamic.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/gettext-tiny/dynamic.patch')
-rw-r--r--system/gettext-tiny/dynamic.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/system/gettext-tiny/dynamic.patch b/system/gettext-tiny/dynamic.patch
new file mode 100644
index 000000000..aa027d155
--- /dev/null
+++ b/system/gettext-tiny/dynamic.patch
@@ -0,0 +1,18 @@
+GDB/symbol splitting doesn't work on static binaries.
+
+For debugability, build dynamic.
+--- gettext-tiny-0.3.0_pre1/Makefile.old 2018-07-25 23:41:05.120000000 +0000
++++ gettext-tiny-0.3.0_pre1/Makefile 2018-07-25 23:42:51.350000000 +0000
+@@ -62,10 +62,10 @@
+ $(RANLIB) $@
+
+ msgmerge: $(OBJS)
+- $(CC) $(LDFLAGS) -static -o $@ src/msgmerge.o $(PARSEROBJS)
++ $(CC) $(LDFLAGS) -o $@ src/msgmerge.o $(PARSEROBJS)
+
+ msgfmt: $(OBJS)
+- $(CC) $(LDFLAGS) -static -o $@ src/msgfmt.o $(PARSEROBJS)
++ $(CC) $(LDFLAGS) -o $@ src/msgfmt.o $(PARSEROBJS)
+
+ xgettext:
+ cp src/xgettext.sh ./xgettext