Packages/musl (#12288)

* bump eospac version

* Revert "bump eospac version"

This reverts commit 835b1f822d.

* fix-up musl-gcc wrapper script

* address adamjstewart's comments
This commit is contained in:
Daryl W. Grunau 2019-08-05 19:16:14 -06:00 committed by Adam J. Stewart
parent 567cef7ae3
commit cb7e9c155e

View File

@ -33,8 +33,27 @@ class Musl(Package):
phases = ['configure', 'build', 'install']
def patch(self):
config = FileFilter('configure')
if self.compiler.name == 'gcc':
config.filter("WRAPCC_GCC = .*'", "WRAPCC_GCC = {0}'".
format(self.compiler.cc))
elif self.compiler.name == 'clang':
config.filter("WRAPCC_CLANG = .*'", "WRAPCC_CLANG = {0}'".
format(self.compiler.cc))
def configure_args(self):
args = ['--prefix={0}'.format(prefix)]
if self.compiler.name == 'gcc':
args.append('--enable-wrapper=gcc')
elif self.compiler.name == 'clang':
args.append('--enable-wrapper=clang')
else:
args.append('--enable-wrapper=no')
return args
def configure(self, spec, prefix):
configure('--prefix={0}'.format(prefix))
configure(*self.configure_args())
def build(self, spec, prefix):
make()