From 2f71f5913670cec39345ff4d37c705ddc1adc06d Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 15 Dec 2014 23:56:04 +0000 Subject: Test _XOPEN_SOURCE=700, fix include order in Makefile --- Makefile | 2 +- configure | 24 +++++++++++++++++------- package/targets.mak | 9 +++------ 3 files changed, 21 insertions(+), 14 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 455559f..0647be0 100755 --- a/configure +++ b/configure @@ -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." @@ -364,13 +374,13 @@ cat <