|
@ -89,7 +89,7 @@ |
|
|
# Option variables |
|
|
# Option variables |
|
|
if [ ! -z "$PREFIX" ] ; then |
|
|
if [ ! -z "$PREFIX" ] ; then |
|
|
prefix="$PREFIX" |
|
|
prefix="$PREFIX" |
|
|
@@ -327,79 +254,9 @@ if [ $static -ne 0 ] ; then
|
|
|
|
|
|
|
|
|
@@ -327,80 +254,9 @@ if [ $static -ne 0 ] ; then
|
|
|
ldflags="${ldflags}-static" |
|
|
ldflags="${ldflags}-static" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -137,6 +137,7 @@ |
|
|
-case "x$os" in
|
|
|
-case "x$os" in
|
|
|
- "xLinux"|"xCYGWIN"*)
|
|
|
- "xLinux"|"xCYGWIN"*)
|
|
|
- cflags="$cflags -D_GNU_SOURCE -D__dead=\"__attribute__((__noreturn__))\" -Dst_mtimespec=st_mtim"
|
|
|
- cflags="$cflags -D_GNU_SOURCE -D__dead=\"__attribute__((__noreturn__))\" -Dst_mtimespec=st_mtim"
|
|
|
|
|
|
- libs="$libs -lutil"
|
|
|
- ;;
|
|
|
- ;;
|
|
|
- "xDarwin")
|
|
|
- "xDarwin")
|
|
|
- cflags="$cflags -DMSG_NOSIGNAL=SO_NOSIGPIPE -DLOGIN_NAME_MAX=MAXLOGNAME"
|
|
|
- cflags="$cflags -DMSG_NOSIGNAL=SO_NOSIGPIPE -DLOGIN_NAME_MAX=MAXLOGNAME"
|
|
@ -167,7 +168,7 @@ |
|
|
- ;;
|
|
|
- ;;
|
|
|
-esac
|
|
|
-esac
|
|
|
+# OpenWrt
|
|
|
+# OpenWrt
|
|
|
+libs='-lncurses -lpcreposix'
|
|
|
|
|
|
|
|
|
+libs='-lncurses -lpcreposix -lutil'
|
|
|
+cflags="$cflags -D_GNU_SOURCE -D__dead=\"__attribute__((__noreturn__))\" -Dst_mtimespec=st_mtim"
|
|
|
+cflags="$cflags -D_GNU_SOURCE -D__dead=\"__attribute__((__noreturn__))\" -Dst_mtimespec=st_mtim"
|
|
|
|
|
|
|
|
|
cat << EOF > config.h |
|
|
cat << EOF > config.h |
|
|