summaryrefslogtreecommitdiff
path: root/package/traceroute/patches/patch-Make_rules
blob: 5d347bc68beceeee07880417edb460fbf68d65a2 (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
--- traceroute-2.0.19.orig/Make.rules	2012-03-27 15:49:04.000000000 +0200
+++ traceroute-2.0.19/Make.rules	2013-12-29 20:01:35.000000000 +0100
@@ -46,14 +46,14 @@ $(call set, INSTALL, cp)
 $(call set, INDENT, true)
 
 gcc = $(findstring gcc,$(CC))
-$(call set, CFLAGS, $(if $(gcc), -O2 -Wall, -O))
+$(call set, CFLAGS, )
 $(call set, CPPFLAGS, )
 $(call set, LDFLAGS, -s)
 $(call set, LIBS, )
 
 
 #  install stuff
-prefix = /usr/local
+prefix = /usr
 
 ifneq ($(wildcard /lib64/libc.* /usr/lib64/libc.*),)
 lib := lib64
@@ -131,7 +131,7 @@ _libs = $(strip $(foreach _lib,$(LIBDIRS
 			$(wildcard $(srcdir)/$(_lib)/$(_lib).so \
 					$(srcdir)/$(_lib)/$(_lib).a))))
 
-override LIBS := $(_libs) -lm $(LIBS)
+override LIBS := $(_libs) $(LIBS)
 
 ifneq ($(gcc),)
 CPATH = $(subst $(empty) ,:,$(includes))