From bf8e740cf9792347bde468b424f10b2c1e0245ab Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 15 Dec 2014 23:48:32 +0000 Subject: Fix include order in Makefile, remove gcc warning --- Makefile | 2 +- configure | 26 +++++++++++++++++++------- package/targets.mak | 8 +++----- src/skaembutils/s6-grep.c | 8 ++------ 4 files changed, 25 insertions(+), 19 deletions(-) diff --git a/Makefile b/Makefile index c8ff735..73d9cbb 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,8 @@ it: all CC = $(error Please use ./configure first) -include package/targets.mak -include config.mak +include package/targets.mak include package/deps.mak version_m := $(basename $(version)) diff --git a/configure b/configure index 917a7f4..16590e5 100755 --- a/configure +++ b/configure @@ -32,6 +32,8 @@ Dependencies: --with-dynlib=DIR add DIR to the list of searched directories for shared libraries Optional features: + --enable-shared build shared libraries [disabled] + --disable-static do not build static libraries [enabled] --disable-allstatic do not prefer linking against static libraries [enabled] --enable-static-libc make entirely static binaries [disabled] --enable-slashpackage[=ROOT] assume /package installation at ROOT [disabled] @@ -342,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." @@ -362,13 +374,13 @@ cat <