packages/Xorg/app/gpxview/patches/100-cross-compile.patch
mb cd8f902fc9 Add GPXView Geocaching application
git-svn-id: svn://svn.openwrt.org/openwrt/packages@22714 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-19 11:28:43 +00:00

26 lines
659 B
Diff

---
src/Makefile.in | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- gpxview-0.9.1.orig/src/Makefile.in
+++ gpxview-0.9.1/src/Makefile.in
@@ -33,15 +33,15 @@ OBJS = main.o gpx.o goto.o gps.o misc.o
DEFS = -DVERSION=\"$(VERSION)\" -DPREFIX=\"$(prefix)\" -DICONPATH=\"$(datadir)/$(APP)/\" -DAPP=\"$(APP)\"
CFLAGS = -Wall -O2 $(DEFS) @CFLAGS@
-LDFLAGS = @LIBS@ -lz
+LDFLAGS = @LDFLAGS@ @LIBS@ -lz
all: $(APP)
%.o: %.c Makefile
- gcc $(CFLAGS) -o $@ -c $<
+ $(CC) $(CFLAGS) -o $@ -c $<
$(APP): $(OBJS)
- gcc -o $@ $(OBJS) $(LDFLAGS)
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)
install:
install -d $(DESTDIR)$(prefix)$(bindir)