Skip to content

Commit

Permalink
cunit: fix shared build (#3867)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adsun701 authored and Alexpux committed May 30, 2018
1 parent 3523dd9 commit d9eb33b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
11 changes: 11 additions & 0 deletions mingw-w64-cunit/002-fix-shared.patch
@@ -0,0 +1,11 @@
--- CUnit-2.1-3/CUnit/Sources/Makefile.am.orig 2018-05-30 16:08:27.927435300 -0400
+++ CUnit-2.1-3/CUnit/Sources/Makefile.am 2018-05-30 16:08:36.246621300 -0400
@@ -67,7 +67,7 @@
lib_LTLIBRARIES = libcunit.la
libcunit_la_SOURCES =
libcunit_la_LIBADD = $(OBJECT_FILES_SHARED)
-libcunit_la_LDFLAGS = -version-info @LIBTOOL_CURRENT@:@LIBTOOL_REVISION@:@LIBTOOL_AGE@
+libcunit_la_LDFLAGS = -version-info @LIBTOOL_CURRENT@:@LIBTOOL_REVISION@:@LIBTOOL_AGE@ -no-undefined


if ENABLE_TEST
9 changes: 6 additions & 3 deletions mingw-w64-cunit/PKGBUILD
Expand Up @@ -6,19 +6,22 @@ pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
_distname="CUnit"
_distver="2.1-3"
pkgver=2.1.3
pkgrel=2
pkgrel=3
pkgdesc="Lightweight system for writing, administering, and running unit tests in C (mingw-w64)"
arch=('any')
url='https://cunit.sourceforge.io/'
license=('LGPL2.1')
source=("https://downloads.sourceforge.net/project/cunit/CUnit/2.1-3/CUnit-2.1-3.tar.bz2"
001-posix-layout.patch)
"001-posix-layout.patch"
"002-fix-shared.patch")
sha256sums=('f5b29137f845bb08b77ec60584fdb728b4e58f1023e6f249a464efa49a40f214'
'520300bb55ad2a72981c87596dd13f5d2bd095ef2259c74ef53d136ae218ebea')
'520300bb55ad2a72981c87596dd13f5d2bd095ef2259c74ef53d136ae218ebea'
'be56af8ed53dbbdf8c22801dfa4c21d26297901d9731a931f3dd8db524de086d')

prepare() {
cd "$srcdir/"${_distname}-${_distver}
patch -p1 -i ${srcdir}/001-posix-layout.patch
patch -p1 -i ${srcdir}/002-fix-shared.patch

libtoolize --force --copy
aclocal
Expand Down

0 comments on commit d9eb33b

Please sign in to comment.