Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/PKGBUILD b/PKGBUILD
- index 999de0e..3c5f316 100755
- --- a/PKGBUILD
- +++ b/PKGBUILD
- @@ -24,7 +24,8 @@ options=(staticlibs !libtool !emptydirs !strip zipman docs)
- source=(https://launchpad.net/gcc-linaro/${_relver}/${_relverdate}/+download/gcc-linaro-${_relverdate}.tar.bz2
- http://releases.linaro.org/14.09/components/toolchain/newlib-linaro/newlib-${_newlibver}.tar.bz2
- gcc-${_relver}-multilib2.patch
- - gcc-${_relver}-no-exceptions.patch)
- + gcc-${_relver}-no-exceptions.patch
- + gcc-${_relver}-cfns-attributes.patch)
- _basedir=gcc-linaro-${_relverdate}
- build() {
- @@ -35,6 +36,7 @@ build() {
- cd ${srcdir}/${_basedir}
- patch -Np0 -i "${srcdir}/gcc-${_relver}-multilib2.patch"
- patch -Np0 -i "${srcdir}/gcc-${_relver}-no-exceptions.patch"
- + patch -Np1 -i "${srcdir}/gcc-${_relver}-cfns-attributes.patch"
- mkdir build
- cd build
- @@ -80,4 +82,5 @@ package() {
- sha256sums=('4fc5c9fb78882857f988bec979947fc2e55a3ea31640b7ace601bcee3c86fd37'
- 'ed92e8547246834725a3c5743fa41d3f573e3e5d2e5066d433ac3c29e6676fc8'
- '104b9aa652804a56338470983e6975af1d1e5440eb8bddae3a01a966d2b332cf'
- - '3cd19aac3d1c4f46377bf6d82a0130686c6677ee5e817a702a34238f6a748dcd')
- + '3cd19aac3d1c4f46377bf6d82a0130686c6677ee5e817a702a34238f6a748dcd'
- + '9bc036c18d91593dc7cdece388723f38df9a7115d0c7857be35893f42ddda338')
- diff --git a/gcc-4.7-cfns-attributes.patch b/gcc-4.7-cfns-attributes.patch
- new file mode 100644
- index 0000000..81c93c9
- --- /dev/null
- +++ b/gcc-4.7-cfns-attributes.patch
- @@ -0,0 +1,28 @@
- +diff --git a/gcc/cp/cfns.gperf b/gcc/cp/cfns.gperf
- +index 68acd3d..953262f 100644
- +--- a/gcc/cp/cfns.gperf
- ++++ b/gcc/cp/cfns.gperf
- +@@ -22,6 +22,9 @@ __inline
- + static unsigned int hash (const char *, unsigned int);
- + #ifdef __GNUC__
- + __inline
- ++#ifdef __GNUC_STDC_INLINE__
- ++__attribute__ ((__gnu_inline__))
- ++#endif
- + #endif
- + const char * libc_name_p (const char *, unsigned int);
- + %}
- +diff --git a/gcc/cp/cfns.h b/gcc/cp/cfns.h
- +index 1c6665d..6d00c0e 100644
- +--- a/gcc/cp/cfns.h
- ++++ b/gcc/cp/cfns.h
- +@@ -53,6 +53,9 @@ __inline
- + static unsigned int hash (const char *, unsigned int);
- + #ifdef __GNUC__
- + __inline
- ++#ifdef __GNUC_STDC_INLINE__
- ++__attribute__ ((__gnu_inline__))
- ++#endif
- + #endif
- + const char * libc_name_p (const char *, unsigned int);
- + /* maximum key range = 391, duplicates = 0 */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement