Skip to content
This repository has been archived by the owner on Dec 10, 2017. It is now read-only.

Commit

Permalink
Merge pull request #9 from sgerrand/musl-macro
Browse files Browse the repository at this point in the history
Update C++ compiler flags for MUSL C
  • Loading branch information
sgerrand authored Jul 14, 2016
2 parents 780bbcc + 6bcf8af commit d42aa89
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
4 changes: 2 additions & 2 deletions 10-glibc-disable-stack-end.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- src/R-3.2.3/src/unix/system.c
+++ src/R-3.2.3/src/unix/system.c
--- a/src/unix/system.c
+++ b/src/unix/system.c
@@ -132,7 +132,7 @@
# endif
# include <sys/resource.h>
Expand Down
11 changes: 11 additions & 0 deletions 20-add-aix-to-r-extra-cpp-flags.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/etc/Makeconf.in
+++ b/etc/Makeconf.in
@@ -114,7 +114,7 @@
STATIC_LIBR = @WANT_R_STATIC_TRUE@ @STATICR1@ "$(R_HOME)/lib$(R_ARCH)/libR.a" @STATICR2@ $(BLAS_LIBS) $(FLIBS) @R_XTRA_LIBS@ $(LIBINTL) @READLINE_LIBS@ $(LIBS)

R_XTRA_CFLAGS = @R_XTRA_CFLAGS@
-R_XTRA_CPPFLAGS = @R_XTRA_CPPFLAGS@ @R_XTRA_CPPFLAGS2@ -DNDEBUG
+R_XTRA_CPPFLAGS = @R_XTRA_CPPFLAGS@ @R_XTRA_CPPFLAGS2@ -DNDEBUG -D_AIX
R_XTRA_CXXFLAGS = @R_XTRA_CXXFLAGS@
R_XTRA_FFLAGS = @R_XTRA_FFLAGS@

14 changes: 9 additions & 5 deletions APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ makedepends="$depends_dev autoconf automake gfortran"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://cran.rstudio.com/src/base/$pkgname-${pkgver:0:1}/$pkgname-$pkgver.tar.gz
10-glibc-disable-stack-end.patch"
10-glibc-disable-stack-end.patch
20-add-aix-to-r-extra-cpp-flags.patch"

_builddir="$srcdir/$pkgname-$pkgver"

Expand All @@ -22,7 +23,7 @@ prepare() {
for i in $source; do
case $i in
*.patch)
msg "Applying ${i}"; patch -p2 -i "$srcdir/$i" || return 1;;
msg "Applying ${i}"; patch -p1 -i "$srcdir/$i" || return 1;;
esac
done
}
Expand Down Expand Up @@ -62,8 +63,11 @@ doc() {
}

md5sums="5a7506c8813432d1621c9725e86baf7a R-3.3.0.tar.gz
4368a6983cf584d666c51aa61d680209 10-glibc-disable-stack-end.patch"
5e221346d92824dd33d328054942b505 10-glibc-disable-stack-end.patch
8cab50c334cc4bbd9cdbddb3ea910eca 20-add-aix-to-r-extra-cpp-flags.patch"
sha256sums="9256b154b1a5993d844bee7b1955cd49c99ad72cef03cce3cd1bdca1310311e4 R-3.3.0.tar.gz
26a00af590550a19d6a2c3e21ce932de6722300d1dd18729bdfa16b57da23242 10-glibc-disable-stack-end.patch"
d588a5d4db1ec83277221f5f0c1605110a0d46cd2abb567f744ad83f35da3c40 10-glibc-disable-stack-end.patch
ca142e4dad1694550fe462540ee5feef3687a1f16c6e970e186cf0dc0b2f3704 20-add-aix-to-r-extra-cpp-flags.patch"
sha512sums="81e9ef761bee4d9322ca785fbed843ab13c2f5b55be769d982a81a7e7694e03980cbc7ee067fc850bd7a17ab65d93be81f27db50d428665773174c690383d4cc R-3.3.0.tar.gz
a1b3d9ad70dc77a649f0b56e1080e2f833e7eba23408ee710d372bfde06eb651418c78f640554743666c812eb0d268e0db48b2cbf038481c9ede46e4d4f43c3e 10-glibc-disable-stack-end.patch"
f5e72f742a540c1a5439221ca1afcd1d2c0f4421dac6f2301231ce4905bdf12a4b6cab7213f15849d3f9f4d0bd6addc91ef8805213dad23794245f7ea12aa102 10-glibc-disable-stack-end.patch
658c8c47baeb4914ccc8deec34d4f4229933134ff189724349201fe0768115b70d74af60bf54fb9e692951b70ca7458450e1077aea5ebf5c4571b8e8afc581b9 20-add-aix-to-r-extra-cpp-flags.patch"

0 comments on commit d42aa89

Please sign in to comment.