Skip to content

Commit

Permalink
gnustep-base: Build on clang64
Browse files Browse the repository at this point in the history
  • Loading branch information
qmfrederik committed Sep 9, 2024
1 parent 30f86a7 commit c223035
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
17 changes: 3 additions & 14 deletions mingw-w64-gnustep-base/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ _realname=gnustep-base
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=1.30.0
pkgrel=8
pkgrel=9
pkgdesc="GNUstep Base library (mingw-w64)"
arch=('any')
mingw_arch=('mingw64' 'ucrt64')
mingw_arch=('mingw64' 'ucrt64' 'clang64')
url='https://gnustep.github.org/'
license=('spdx:LGPL-2.1-or-later')
makedepends=("${MINGW_PACKAGE_PREFIX}-autotools"
Expand Down Expand Up @@ -44,22 +44,11 @@ build() {
rsync --recursive --times --links "${srcdir}/${_realname}-${pkgver}"/* "${srcdir}/build-${MSYSTEM}"
cd "${srcdir}/build-${MSYSTEM}"

case ${MSYSTEM} in
MINGW*|UCRT*)
export LDFLAGS="-fuse-ld=lld -lstdc++ -lgcc_s"
;;
CLANG*)
export LDFLAGS="-lc++"
;;
esac

CC="$MINGW_PREFIX/bin/clang" \
CXX="$MINGW_PREFIX/bin/clang++" \
./configure \
--prefix="${MINGW_PREFIX}"

CC="$MINGW_PREFIX/bin/clang" \
CXX="$MINGW_PREFIX/bin/clang++" \

make
}

Expand Down
5 changes: 3 additions & 2 deletions mingw-w64-gnustep-make/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _realname=gnustep-make
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=2.9.2
pkgrel=1
pkgrel=2
pkgdesc="GNUstep build system (mingw-w64)"
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64')
Expand All @@ -25,12 +25,13 @@ build() {
cd "${srcdir}/${_realname}-${pkgver}"
mkdir -p "${srcdir}/build-${MSYSTEM}" && cd "${srcdir}/build-${MSYSTEM}"

# libobjc2 defers exception handling to the C++ library, so link with a C++ library
case ${MSYSTEM} in
MINGW*|UCRT*)
export LDFLAGS="-fuse-ld=lld -lstdc++ -lgcc_s"
;;
CLANG*)
export LDFLAGS="-lc++"
export LDFLAGS="-Wl,--no-whole-archive -lc++"
;;
esac

Expand Down

0 comments on commit c223035

Please sign in to comment.