summaryrefslogtreecommitdiff
path: root/package/gettext-tiny/patches/patch-Makefile
blob: dcc98f4bbf182304453bcd333212f3a6ccf90859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
--- gettext-tiny-0.0.4.orig/Makefile	2014-03-02 15:55:44.000000000 +0100
+++ gettext-tiny-0.0.4/Makefile	2016-07-17 01:00:02.732966962 +0200
@@ -1,4 +1,4 @@
-prefix=/usr/local
+prefix=/usr
 bindir=$(prefix)/bin
 includedir=$(prefix)/include
 libdir=$(prefix)/lib
@@ -19,7 +19,8 @@ ALL_INCLUDES = $(HEADERS)
 ALL_LIBS=libintl.a
 ALL_TOOLS=msgfmt msgmerge xgettext
 
-CFLAGS=-O0 -fPIC
+CFLAGS?=-O0
+CFLAGS+=-fPIC
 
 AR      ?= $(CROSS_COMPILE)ar
 RANLIB  ?= $(CROSS_COMPILE)ranlib
@@ -47,22 +48,25 @@ libintl.a: $(LIBOBJS)
 	$(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
 
 $(DESTDIR)$(libdir)/%.a: %.a
-	install -D -m 755 $< $@
+	mkdir -p $(DESTDIR)$(libdir)
+	install -m 755 $< $@
 
 $(DESTDIR)$(includedir)/%.h: include/%.h
-	install -D -m 644 $< $@
+	mkdir -p $(DESTDIR)$(includedir)
+	install -m 644 $< $@
 
 $(DESTDIR)$(bindir)/%: %
-	install -D -m 755 $< $@
+	mkdir -p $(DESTDIR)$(bindir)
+	install -m 755 $< $@
 
 .PHONY: all clean install