mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
$NetBSD: patch-configure-alt,v 1.2 2015/06/10 14:59:43 joerg Exp $
|
|
|
|
Use default CFLAGS and LDFLAGS.
|
|
Add DragolFly support.
|
|
|
|
--- configure-alt.orig 2014-04-08 14:02:27.000000000 +0000
|
|
+++ configure-alt
|
|
@@ -64,6 +64,7 @@ echo
|
|
case `uname` in
|
|
Darwin) true ${os_type:=MAC_OSX} ;;
|
|
Linux) true ${os_type:=LINUX} ;;
|
|
+ DragonFly) true ${os_type:=_BSD} ;;
|
|
FreeBSD) true ${os_type:=_BSD} ;;
|
|
NetBSD) true ${os_type:=_BSD} ;;
|
|
OpenBSD) true ${os_type:=_BSD} ;;
|
|
@@ -180,7 +181,7 @@ cat > test-readline.c <<EOF
|
|
#include <readline/history.h>
|
|
|
|
char **
|
|
-test_completion (char * text, int start, int end) {
|
|
+test_completion (const char * text, int start, int end) {
|
|
return NULL;
|
|
}
|
|
|
|
@@ -188,7 +189,7 @@ int
|
|
main(int argc, char** argv) {
|
|
|
|
rl_readline_name = "test";
|
|
- rl_attempted_completion_function = (CPPFunction *)test_completion;
|
|
+ rl_attempted_completion_function = test_completion;
|
|
readline(NULL);
|
|
add_history("test");
|
|
|
|
@@ -474,8 +475,8 @@ fi
|
|
cat > makefile_build <<EOF
|
|
# makefile for newLISP v. 10.1.x generated by the configure script (configure-alt)
|
|
CC = ${CC:-${DEFAULT_CC}}
|
|
-CFLAGS = ${CFLAGS:-${DEFAULT_CFLAGS}} ${INCLUDES}
|
|
-LDFLAGS = ${LDFLAGS:-${DEFAULT_LDFLAGS}}
|
|
+CFLAGS = ${CFLAGS} ${DEFAULT_CFLAGS} ${INCLUDES}
|
|
+LDFLAGS = ${LDFLAGS} ${DEFAULT_LDFLAGS}
|
|
OBJS = ${OBJS:-${DEFAULT_OBJS}}
|
|
STRIP = ${STRIP:-${DEFAULT_STRIP}}
|
|
TARG = ${TARG:-${DEFAULT_TARG}}
|