cddlib/cddlib-automake.diff
2016-07-04 08:34:05 +00:00

45 lines
1.4 KiB
Diff

From: Jan Engelhardt <jengelh@medozas.de>
Date: 2012-08-22 01:01:11.243215671 +0200
automake 1.12 wants AM_PROG_AR.
Add -no-undefined, required for PE targets and not detrimental on ELF.
---
configure.in | 1 +
lib-src-gmp/Makefile.am | 2 +-
lib-src/Makefile.am | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
Index: cddlib-094h/configure.in
===================================================================
--- cddlib-094h.orig/configure.in
+++ cddlib-094h/configure.in
@@ -8,6 +8,7 @@ dnl Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
LT_INIT
dnl Checks for libraries.
Index: cddlib-094h/lib-src-gmp/Makefile.am
===================================================================
--- cddlib-094h.orig/lib-src-gmp/Makefile.am
+++ cddlib-094h/lib-src-gmp/Makefile.am
@@ -25,4 +25,4 @@ cddtypes_f.h \
setoper.h
AM_CPPFLAGS = -I$(gmpincludedir) -DGMPRATIONAL
-AM_LDFLAGS = -version-info 0:0:0
+AM_LDFLAGS = -version-info 0:0:0 -no-undefined
Index: cddlib-094h/lib-src/Makefile.am
===================================================================
--- cddlib-094h.orig/lib-src/Makefile.am
+++ cddlib-094h/lib-src/Makefile.am
@@ -16,4 +16,4 @@ cddtypes.h \
setoper.h
AM_CPPFLAGS = -UGMPRATIONAL
-AM_LDFLAGS = -version-info 0:0:0
+AM_LDFLAGS = -version-info 0:0:0 -no-undefined