diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2009-06-10 10:57:52 +0000 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2009-06-10 10:57:52 +0000 |
commit | 0c5c03d095485f7521d96cd44314f9a0ee826232 (patch) | |
tree | 1df111a8270ba417537931cc6e1a4952b3000ee9 /patches/ppp-2.4.4/ppp-2.4.4-detect-crypt.diff | |
parent | d3ee0775cadf505c4bae7b1df483d73bf8294815 (diff) | |
download | ptxdist-0c5c03d095485f7521d96cd44314f9a0ee826232.tar.gz ptxdist-0c5c03d095485f7521d96cd44314f9a0ee826232.tar.xz |
* patches: remove 'generic'-layer
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10711 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'patches/ppp-2.4.4/ppp-2.4.4-detect-crypt.diff')
-rw-r--r-- | patches/ppp-2.4.4/ppp-2.4.4-detect-crypt.diff | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/patches/ppp-2.4.4/ppp-2.4.4-detect-crypt.diff b/patches/ppp-2.4.4/ppp-2.4.4-detect-crypt.diff new file mode 100644 index 000000000..c9be5fd0b --- /dev/null +++ b/patches/ppp-2.4.4/ppp-2.4.4-detect-crypt.diff @@ -0,0 +1,29 @@ +Subject: pppd: add crypt options if crypt is switched on +From: Robert Schwebel <r.schwebel@pengutronix.de> + +Activate the crypt options (CFLAGS, LIBS) if USE_CRYPT is selected. The +current method is a bad idea, because it relies on the crypt.h header +being installed in a special place, which might not be the case. + +The proper solution would probably be a real autotoolization of the +packet, with checks for availability in configure.ac. + +Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> + +--- + pppd/Makefile.linux | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: pppd/Makefile.linux +=================================================================== +--- pppd/Makefile.linux.orig ++++ pppd/Makefile.linux +@@ -117,7 +117,7 @@ CFLAGS += -DHAS_SHADOW + #LIBS += -lshadow $(LIBS) + endif + +-ifneq ($(wildcard $(SYSROOT)/usr/include/crypt.h),) ++ifdef USE_CRYPT + CFLAGS += -DHAVE_CRYPT_H=1 + LIBS += -lcrypt + endif |