diff options
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | configure | 16 | ||||
-rw-r--r-- | package/targets.mak | 14 |
3 files changed, 22 insertions, 10 deletions
@@ -10,8 +10,8 @@ it: all CC = $(error Please use ./configure first) -include config.mak -include package/deps.mak include package/targets.mak +include package/deps.mak version_m := $(basename $(version)) version_M := $(basename $(version_m)) @@ -344,9 +344,19 @@ if $allstatic ; then vpathd= fi echo "vpath lib%.so$vpathd" -echo -$static || echo "STATIC_LIBS :=" -$shared || echo "SHARED_LIBS :=" +echo "STATIC_LIBS :=" +echo "SHARED_LIBS :=" +if $static ; then + echo "DO_STATIC := 1" +else + echo "DO_STATIC :=" +fi +if $shared ; then + echo "DO_SHARED := 1" +else + echo "DO_SHARED :=" +fi + exec 1>&3 3>&- echo " ... done." diff --git a/package/targets.mak b/package/targets.mak index 2125f4e..4d1654c 100644 --- a/package/targets.mak +++ b/package/targets.mak @@ -1,4 +1,4 @@ -BIN_TARGETS = \ +BIN_TARGETS := \ s6-connlimit \ s6-getservbyname \ s6-ioconnect \ @@ -24,13 +24,15 @@ s6-taiclock \ s6-taiclockd \ minidentd -LIBEXEC_TARGETS = +LIBEXEC_TARGETS := -SHARED_LIBS = \ -libs6net.so +ifdef DO_SHARED +SHARED_LIBS := libs6net.so +endif -STATIC_LIBS = \ -libs6net.a +ifdef DO_STATIC +STATIC_LIBS := libs6net.a +endif src/minidentd/mgetuid.c: src/minidentd/mgetuid-linux.c src/minidentd/mgetuid-default.c if grep -iF -- -linux- $(sysdeps)/target ; then \ |