to generate signum.h we need a working cross-cc
[buildroot.git] / package / portmap / portmap-5b-optional-tcpd.patch
blobd5b79f26ca5e6f76e090faa3a06179d7479469a6
1 --- portmap/Makefile.orig 2004-10-31 01:54:48.073875024 -0400
2 +++ portmap/Makefile 2004-10-31 01:54:58.395305928 -0400
3 @@ -15,8 +15,6 @@
4 # no access control tables. The local system, since it runs the portmap
5 # daemon, is always treated as an authorized host.
7 -HOSTS_ACCESS= -DHOSTS_ACCESS
8 -WRAP_LIB = $(WRAP_DIR)/libwrap.a
10 # Comment out if your RPC library does not allocate privileged ports for
11 # requests from processes with root privilege, or the new portmap will
12 @@ -87,7 +85,7 @@
14 AUX = # daemon.o strerror.o
16 -LIBS = -lwrap -lutil
17 +LIBS = -lutil
18 NSARCHS =
19 O = -Wall -O2 -pipe
21 @@ -110,7 +108,7 @@
23 SHELL = /bin/sh
25 -COPT = $(CONST) -Dperror=xperror $(HOSTS_ACCESS) $(CHECK_PORT) \
26 +COPT = $(CONST) -Dperror=xperror $(CHECK_PORT) \
27 $(SYS) -DFACILITY=$(FACILITY) $(ULONG) $(ZOMBIES) $(SA_LEN) \
28 $(LOOPBACK) $(SETPGRP)
29 CFLAGS = $(COPT) $(O) $(NSARCHS)
30 @@ -118,7 +116,7 @@
32 all: portmap pmap_dump pmap_set
34 -portmap: $(OBJECTS) $(WRAP_DIR)/libwrap.a
35 +portmap: $(OBJECTS)
36 $(CC) $(CFLAGS) -o $@ $(OBJECTS) $(WRAP_LIB) $(LIBS)
38 pmap_dump: pmap_dump.c