source:
npl/internetserver/poptop_ppp/patches/ppp-2.4.3-lib64.patch
@
c5c522c
Last change on this file since c5c522c was c5c522c, checked in by , 8 years ago | |
---|---|
|
|
File size: 1.8 KB |
-
ppp-2.4.3/pppd/Makefile.linux
If CC supports the "-print-multi-os-directory" option, use it to determine where to check for the existence libcrypt. If it doesn't, then we get /usr/lib.
8 8 BINDIR = $(DESTDIR)/sbin 9 9 MANDIR = $(DESTDIR)/share/man/man8 10 10 INCDIR = $(DESTDIR)/include 11 LIBDIR = $(DESTDIR)/usr/lib/$(shell gcc -print-multi-os-directory 2> /dev/null) 11 12 12 13 TARGETS = pppd 13 14 … … 32 33 33 34 CC = gcc 34 35 # 35 COPTS = -Wall $(RPM_OPT_FLAGS) 36 COPTS = -Wall $(RPM_OPT_FLAGS) -DLIBDIR=\""$(LIBDIR)"\" 36 37 LIBS = -lutil 37 38 38 39 # Uncomment the next 2 lines to include support for Microsoft's … … 120 121 ifneq ($(wildcard /usr/include/crypt.h),) 121 122 CFLAGS += -DHAVE_CRYPT_H=1 122 123 endif 123 ifneq ($(wildcard /usr/lib/libcrypt.*),)124 ifneq ($(wildcard $(LIBDIR)/libcrypt.*),) 124 125 LIBS += -lcrypt 125 126 endif 126 127 -
ppp-2.4.3/pppd/plugins/Makefile.linux
7 7 DESTDIR = @DESTDIR@ 8 8 BINDIR = $(DESTDIR)/sbin 9 9 MANDIR = $(DESTDIR)/share/man/man8 10 LIBDIR = $(DESTDIR)/lib/ pppd/$(VERSION)10 LIBDIR = $(DESTDIR)/lib/$(shell $(CC) -print-multi-os-directory 2> /dev/null)/pppd/$(VERSION) 11 11 12 12 SUBDIRS := rp-pppoe pppoatm radius 13 13 # Uncomment the next line to include the radius authentication plugin -
ppp-2.4.3/pppd/pathnames.h
If CC supports the "-print-multi-os-directory" option, use it to determine where to check for the existence libcrypt. If it doesn't, then we get /usr/lib.
55 55 #endif /* __STDC__ */ 56 56 57 57 #ifdef PLUGIN 58 #define _PATH_PLUGIN "/usr/lib/pppd/" VERSION58 #define _PATH_PLUGIN LIBDIR "/pppd/" VERSION 59 59 #endif /* PLUGIN */
Note: See TracBrowser
for help on using the repository browser.