openssl, cups: Fix stripping libraries
This commit is contained in:
parent
c3cbe0452a
commit
2cfeca153c
@ -82,6 +82,10 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
mkdir $dev
|
mkdir $dev
|
||||||
mv $out/include $dev/
|
mv $out/include $dev/
|
||||||
|
|
||||||
|
# OpenSSL installs readonly files, which otherwise we can't strip.
|
||||||
|
# FIXME: Can remove this after the next stdenv merge.
|
||||||
|
chmod -R +w $out
|
||||||
''; # */
|
''; # */
|
||||||
|
|
||||||
crossAttrs = {
|
crossAttrs = {
|
||||||
@ -92,14 +96,6 @@ stdenv.mkDerivation {
|
|||||||
export configureFlags="--libdir=lib --cross-compile-prefix=${stdenv.cross.config}- shared ${opensslCrossSystem}"
|
export configureFlags="--libdir=lib --cross-compile-prefix=${stdenv.cross.config}- shared ${opensslCrossSystem}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
# Openssl installs readonly files, which otherwise we can't strip.
|
|
||||||
# This could at some stdenv hash change be put out of crossAttrs, too
|
|
||||||
chmod -R +w $out
|
|
||||||
|
|
||||||
# Remove references to perl, to avoid depending on it at runtime
|
|
||||||
rm $out/bin/c_rehash $out/ssl/misc/CA.pl $out/ssl/misc/tsget
|
|
||||||
'';
|
|
||||||
configureScript = "./Configure";
|
configureScript = "./Configure";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -45,6 +45,8 @@ stdenv.mkDerivation {
|
|||||||
''
|
''
|
||||||
mkdir $dev/bin
|
mkdir $dev/bin
|
||||||
mv $out/bin/cups-config $dev/bin/
|
mv $out/bin/cups-config $dev/bin/
|
||||||
|
|
||||||
|
chmod -R +w $out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user