diff options
author | Michael Jennings <mej@lanl.gov> | 2020-02-28 12:37:13 -0700 |
---|---|---|
committer | Michael Jennings <mej@lanl.gov> | 2020-02-28 12:37:13 -0700 |
commit | 92df7e62e1b85cf1698e4f6f4e6c4933c115b13a (patch) | |
tree | 1477c850327bf8c765423c5c8f66c34924b67494 | |
parent | 9f1e27591d9f03d78af7ac3a9343a3782de0f2f4 (diff) | |
download | libast-92df7e62e1b85cf1698e4f6f4e6c4933c115b13a.tar.gz |
Fix build on RHEL8
-rw-r--r-- | configure.ac | 11 | ||||
-rw-r--r-- | libast.spec | 4 |
2 files changed, 8 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index 167ed0d..3478a2f 100644 --- a/configure.ac +++ b/configure.ac @@ -29,18 +29,19 @@ # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -AC_INIT(configure.ac) -AM_INIT_AUTOMAKE([libast], [0.8]) +AC_INIT([LibAST], [0.8]) +AC_CONFIG_SRCDIR([configure.ac]) +AM_INIT_AUTOMAKE + AC_DEFINE_UNQUOTED(LIBAST_VERSION, "$VERSION", [Version]) AC_CONFIG_MACRO_DIR([.]) AC_CONFIG_HEADERS([config.h include/libast/sysdefs.h]) AC_CONFIG_FILES([include/libast/types.h Makefile include/Makefile - include/libast/Makefile src/Makefile test/Makefile - libast-config]) + src/Makefile test/Makefile libast-config]) dnl# Set some basic variables -AUTHORS="Michael Jennings (mej@eterm.org and mej@lbl.gov)" +AUTHORS="Michael Jennings (mej@eterm.org and mej@lanl.gov)" AC_SUBST(AUTHORS) AC_DEFINE_UNQUOTED(AUTHORS, "$AUTHORS", [Authors]) diff --git a/libast.spec b/libast.spec index 196be51..66c92ff 100644 --- a/libast.spec +++ b/libast.spec @@ -1,11 +1,11 @@ %define __os_install_post /usr/lib/rpm/brp-compress %if %{!?optflags:1}0 -%define optflags ${RPM_OPT_FLAGS:--O0 -g3} +%{expand:%%define optflags %{!?el8:${RPM_OPT_FLAGS:--O0 -g3}}%{?el8:-O2 -ggdb3 -fPIC}} %endif Summary: Library of Assorted Spiffy Things Name: libast -Version: 0.7.1 +Version: 0.8 #Release: 1 Release: 0.%(date '+%Y%m%d') Group: System Environment/Libraries |