Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
652
Issues
652
List
Boards
Labels
Service Desk
Milestones
Merge Requests
182
Merge Requests
182
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
34867060
Commit
34867060
authored
Sep 16, 2016
by
Sören Tempel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing/pcc: new aport
parent
43f2f985
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
0 deletions
+78
-0
testing/pcc/APKBUILD
testing/pcc/APKBUILD
+58
-0
testing/pcc/musl-fixes.patch
testing/pcc/musl-fixes.patch
+20
-0
No files found.
testing/pcc/APKBUILD
0 → 100644
View file @
34867060
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname
=
pcc
pkgver
=
1.1.0
pkgrel
=
0
pkgdesc
=
"The portable C compiler."
url
=
"http://pcc.ludd.ltu.se/"
arch
=
"x86 x86_64"
license
=
"BSD"
depends
=
"pcc-libs-dev bison"
depends_dev
=
""
makedepends
=
"bison flex"
install
=
""
subpackages
=
"
$pkgname
-doc"
source
=
"ftp://pcc.ludd.ltu.se/pub/
$pkgname
-releases/
$pkgname
-
$pkgver
.tgz
musl-fixes.patch"
builddir
=
"
$srcdir
/"
$pkgname
-
$pkgver
prepare
()
{
default_prepare
||
return
1
cd
"
$builddir
"
update_config_sub
||
return
1
sed
-i
-e
's/AC_CHECK_PROG(strip,strip,yes,no)//'
\
configure.ac
||
return
1
sed
-i
-e
's/AC_SUBST(strip)//'
\
configure.ac
||
return
1
}
build
()
{
cd
"
$builddir
"
./configure
\
--build
=
$CBUILD
\
--host
=
$CHOST
\
--prefix
=
/usr
\
--sysconfdir
=
/etc
\
--mandir
=
/usr/share/man
\
--localstatedir
=
/var
\
--disable-stripping
\
||
return
1
make
||
return
1
}
package
()
{
cd
"
$builddir
"
make
DESTDIR
=
"
$pkgdir
"
install
||
return
1
# Don't conflict with gcc-doc.
mv
"
$pkgdir
"
/usr/share/man/man1/cpp.1
\
"
$pkgdir
"
/usr/share/man/man1/
$pkgname
-cpp
.1
||
return
1
}
md5sums
=
"1c0f22440753075d64f9f2c6ed0e8278 pcc-1.1.0.tgz
7991640873523a3773721c9236728a2c musl-fixes.patch"
sha256sums
=
"d9e3fed84c767dcddefb6b1f854d5da8921f3f65d8bd02997743412f41474d64 pcc-1.1.0.tgz
4d82536428dd42912ff9af025a95e405104b1c4491aab571189f66ab0dfa9104 musl-fixes.patch"
sha512sums
=
"5bd2b59fbb323016d215023ce77793ae66766e8e8192b44bf0707ee444658022e1645669c13eea8c81bc55c161eea3b0271d6b3098b8a7d51ce67eb86c7527b4 pcc-1.1.0.tgz
0226a3f9d710840d7f710bc033d7eae6e5d5c8137eca6fe4147467066cb9fecf6acd03dc92f1559f4509eab84b5cc0e6c9533f2114903603644f728a411dc023 musl-fixes.patch"
testing/pcc/musl-fixes.patch
0 → 100644
View file @
34867060
diff -upr pcc-1.1.0.orig/os/linux/ccconfig.h pcc-1.1.0/os/linux/ccconfig.h
--- pcc-1.1.0.orig/os/linux/ccconfig.h 2016-09-16 20:00:46.350281549 +0200
+++ pcc-1.1.0/os/linux/ccconfig.h 2016-09-16 20:04:28.006146652 +0200
@@ -39,14 +39,14 @@
#if defined(mach_i386)
#define CPPMDADD { "-D__i386__", NULL, }
-#define DYNLINKER { "-dynamic-linker", "/lib/ld-linux.so.2", NULL }
+#define DYNLINKER { "-dynamic-linker", "/lib/ld-musl-i386.so.1", NULL }
#elif defined(mach_powerpc)
#define CPPMDADD { "-D__ppc__", NULL, }
#define DYNLINKER { "-dynamic-linker", "/lib/ld-linux.so.2", NULL }
#elif defined(mach_amd64)
#define CPPMDADD { "-D__x86_64__", "-D__x86_64", "-D__amd64__", \
"-D__amd64", "-D__LP64__", "-D_LP64", NULL, }
-#define DYNLINKER { "-dynamic-linker", "/lib64/ld-linux-x86-64.so.2", NULL }
+#define DYNLINKER { "-dynamic-linker", "/lib/ld-musl-x86_64.so.1", NULL }
#ifndef MULTIARCH_PATH
#define DEFLIBDIRS { "/usr/lib64/", 0 }
#else
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment