mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-07 06:56:56 +01:00
Fix overlinking again after recent ntp updates
Fix building WITHOUT_OPENSSL
This commit is contained in:
parent
e14a2a4cf4
commit
ef0cb5db0a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283542
@ -11,7 +11,7 @@ NTPDEFS= -DSYS_FREEBSD
|
||||
CFLAGS+= ${NTPDEFS} ${DEFS_LOCAL} ${CLOCKDEFS}
|
||||
|
||||
.if ${MK_OPENSSL} != "no" && !defined(RELEASE_CRUNCH)
|
||||
CFLAGS+= -DOPENSSL
|
||||
CFLAGS+= -DOPENSSL -DUSE_OPENSSL_CRYPTO_RAND -DAUTOKEY
|
||||
.endif
|
||||
|
||||
WARNS?= 0
|
||||
|
@ -9,7 +9,7 @@
|
||||
/* #undef ADJTIME_IS_ACCURATE */
|
||||
|
||||
/* Support NTP Autokey protocol? */
|
||||
#define AUTOKEY 1
|
||||
/* #define AUTOKEY 1 */
|
||||
|
||||
/* why not HAVE_P_S? */
|
||||
/* #undef CALL_PTHREAD_SETCONCURRENCY */
|
||||
@ -1578,7 +1578,7 @@ typedef unsigned int uintptr_t;
|
||||
#define USE_FSETOWNCTTY 1
|
||||
|
||||
/* Use OpenSSL's crypto random functions */
|
||||
#define USE_OPENSSL_CRYPTO_RAND 1
|
||||
/* #define USE_OPENSSL_CRYPTO_RAND 1 */
|
||||
|
||||
/* OK to use snprintb()? */
|
||||
/* #undef USE_SNPRINTB */
|
||||
|
@ -23,7 +23,7 @@ CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \
|
||||
LIBADD+= ntp opts pthread
|
||||
|
||||
.if ${MK_OPENSSL} != "no"
|
||||
LIBADD+= md crypto
|
||||
LIBADD+= crypto
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -35,10 +35,12 @@ CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/ntpd \
|
||||
-I${.CURDIR}/../ \
|
||||
-I${.CURDIR}
|
||||
|
||||
LIBADD= parse ntp m rt opts md pthread
|
||||
LIBADD= parse ntp m opts pthread
|
||||
|
||||
.if ${MK_OPENSSL} != "no"
|
||||
LIBADD+= crypto
|
||||
.else
|
||||
LIBADD+= md
|
||||
.endif
|
||||
|
||||
CLEANFILES+= .version version.c
|
||||
|
@ -14,10 +14,12 @@ CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \
|
||||
-I${.CURDIR}/../../../contrib/ntp/lib/isc/pthreads/include \
|
||||
-I${.CURDIR}/../
|
||||
|
||||
LIBADD= rt ntp m pthread
|
||||
LIBADD= ntp m pthread
|
||||
|
||||
.if ${MK_OPENSSL} != "no"
|
||||
LIBADD+= md ssl crypto
|
||||
LIBADD+= crypto
|
||||
.else
|
||||
LIBADD+= md
|
||||
.endif
|
||||
|
||||
CLEANFILES+= .version version.c
|
||||
|
@ -18,12 +18,14 @@ CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \
|
||||
-I${.CURDIR}/../../../lib/libc/${MACHINE_ARCH} \
|
||||
-I${.CURDIR}/../ -I${.CURDIR}
|
||||
|
||||
LIBADD= edit md ntp m readline opts ncurses pthread
|
||||
LIBADD= edit ntp m opts pthread
|
||||
CFLAGS+= -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \
|
||||
-I${DESTDIR}/${INCLUDEDIR}/edit
|
||||
|
||||
.if ${MK_OPENSSL} != "no"
|
||||
LIBADD+= ssl crypto
|
||||
LIBADD+= crypto
|
||||
.else
|
||||
LIBADD+= md
|
||||
.endif
|
||||
|
||||
CLEANFILES+= .version version.c
|
||||
|
@ -21,10 +21,12 @@ CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \
|
||||
-I${.CURDIR}/../../../contrib/ntp/sntp/libopts \
|
||||
-I${.CURDIR}/../
|
||||
|
||||
LIBADD+= edit md ntp opts m pthread
|
||||
LIBADD+= edit ntp opts m pthread
|
||||
|
||||
.if ${MK_OPENSSL} != "no"
|
||||
LIBADD+= ssl crypto
|
||||
LIBADD+= crypto
|
||||
.else
|
||||
LIBADD+= md
|
||||
.endif
|
||||
|
||||
CFLAGS+= -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \
|
||||
|
@ -23,7 +23,9 @@ CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \
|
||||
LIBADD= m opts ntp ntpevent pthread
|
||||
|
||||
.if ${MK_OPENSSL} != "no"
|
||||
LIBADD+= md ssl crypto
|
||||
LIBADD+= crypto
|
||||
.else
|
||||
LIBADD+= md
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user