From 9bc3dbf5b1a4acbe81a0c4aba54a85de624ab128 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 24 Feb 2019 20:45:30 +0000 Subject: Build everything as PIC by default; prepare for 0.1.0.3 --- COPYING | 2 +- INSTALL | 2 +- NEWS | 7 +++++++ configure | 21 +++++---------------- doc/index.html | 4 ++-- doc/upgrade.html | 10 ++++++++++ package/info | 2 +- 7 files changed, 27 insertions(+), 21 deletions(-) diff --git a/COPYING b/COPYING index 8a62df1..85e6fa1 100644 --- a/COPYING +++ b/COPYING @@ -1,4 +1,4 @@ -Copyright (c) 2017-2018 Laurent Bercot +Copyright (c) 2017-2019 Laurent Bercot Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above diff --git a/INSTALL b/INSTALL index 171d4d9..369f1ca 100644 --- a/INSTALL +++ b/INSTALL @@ -6,7 +6,7 @@ Build Instructions - A Linux-based system with a standard C development environment - GNU make version 3.81 or later - - skalibs version 2.7.0.0 or later: http://skarnet.org/software/skalibs/ + - skalibs version 2.8.0.0 or later: http://skarnet.org/software/skalibs/ This software is Linux-specific. It will run on a Linux kernel, version 2.6.10 or later. diff --git a/NEWS b/NEWS index 5e1246b..9572908 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,12 @@ Changelog for mdevd. +In 0.1.0.3 +---------- + + - Adaptation to skalibs-2.8.0.0. + - Everything builds as PIC by default. + + In 0.1.0.2 ---------- diff --git a/configure b/configure index c147abb..ae5309d 100755 --- a/configure +++ b/configure @@ -40,7 +40,7 @@ Optional features: --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-all-pic build everything as PIC [enabled iff toolchain builds PIE] + --disable-all-pic do not build executables or static libs as PIC [enabled] --enable-slashpackage[=ROOT] assume /package installation at ROOT [disabled] --enable-absolute-paths do not rely on PATH to access this package's binaries, hardcode absolute BINDIR/foobar paths instead [disabled] @@ -144,7 +144,7 @@ sysdeps='$prefix/lib/skalibs/sysdeps' manualsysdeps=false shared=false static=true -allpic=detect +allpic=true slashpackage=false abspath=false usensss=false @@ -307,20 +307,6 @@ if [ "x$target" != "x$(cat $sysdeps/target)" ] ; then exit 1 fi -if test $allpic = detect ; then - echo "Checking whether we need to build everything as PIC..." - if $CC_AUTO $CPPFLAGS_AUTO $CPPFLAGS $CPPFLAGS_POST $CFLAGS_AUTO $CFLAGS $CFLAGS_POST -dM -E - < /dev/null | grep -qF __PIE__ ; then - allpic=true - echo " ... yes" - else - allpic=false - echo " ... no" - fi -fi -if $allpic ; then - tryflag CFLAGS_AUTO -fPIC -fi - spawn_lib=$(cat $sysdeps/spawn.lib) socket_lib=$(cat $sysdeps/socket.lib) sysclock_lib=$(cat $sysdeps/sysclock.lib) @@ -328,6 +314,9 @@ tainnow_lib=$(cat $sysdeps/tainnow.lib) timer_lib=$(cat $sysdeps/timer.lib) util_lib=$(cat $sysdeps/util.lib) +if $allpic ; then + tryflag CPPFLAGS_AUTO -fPIC +fi tryflag CFLAGS_AUTO -std=c99 tryflag CFLAGS -fomit-frame-pointer tryflag CFLAGS_AUTO -fno-exceptions diff --git a/doc/index.html b/doc/index.html index eef962f..a994544 100644 --- a/doc/index.html +++ b/doc/index.html @@ -53,7 +53,7 @@ entirely compatible with advanced mdev usage such as The Linux kernel must be 2.6.10 or later.
  • GNU make, version 3.81 or later
  • skalibs version -2.7.0.0 or later. It's a build-time requirement. It's also a run-time +2.8.0.0 or later. It's a build-time requirement. It's also a run-time requirement if you link against the shared version of the skalibs library.
  • @@ -69,7 +69,7 @@ library.
    • The current released version of mdevd is -0.1.0.2.
    • +0.1.0.3.
    • Alternatively, you can checkout a copy of the mdevd git repository: diff --git a/doc/upgrade.html b/doc/upgrade.html index 74caac9..6021ef8 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -18,6 +18,16 @@

      What has changed in mdevd

      +

      in 0.1.0.3

      + +
        +
      • skalibs +dependency bumped to 2.8.0.0.
      • +
      • Everything now builds as PIC by default no matter +the toolchain's settings. Use the --disable-all-pic configure +option to build executables and static libraries as non-PIC.
      • +
      +

      in 0.1.0.2

        diff --git a/package/info b/package/info index 2640762..8041d6c 100644 --- a/package/info +++ b/package/info @@ -1,4 +1,4 @@ package=mdevd -version=0.1.0.2 +version=0.1.0.3 category=admin package_macro_name=MDEVD -- cgit v1.2.3