summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-04 11:42:27 +0000
committerRoy Marples <roy@marples.name>2008-01-04 11:42:27 +0000
commit64bed45bd68655d0023552a73a9c2ea8073f78ed (patch)
tree41911c81a2c04968d3c855394cc906e5fbf74e3e
parentKeyword ~arm (diff)
downloaduberlord-64bed45bd68655d0023552a73a9c2ea8073f78ed.tar.gz
uberlord-64bed45bd68655d0023552a73a9c2ea8073f78ed.tar.bz2
uberlord-64bed45bd68655d0023552a73a9c2ea8073f78ed.zip
Fix static building.
-rw-r--r--sys-apps/openrc/openrc-9999.ebuild15
1 files changed, 5 insertions, 10 deletions
diff --git a/sys-apps/openrc/openrc-9999.ebuild b/sys-apps/openrc/openrc-9999.ebuild
index ee67f71..c520113 100644
--- a/sys-apps/openrc/openrc-9999.ebuild
+++ b/sys-apps/openrc/openrc-9999.ebuild
@@ -47,16 +47,15 @@ make_opts() {
use ncurses && opts="${opts} TERMCAP=ncurses"
use pam && opts="${opts} PAM=pam"
+ use static && opts="${opts} BIN_LDFLAGS=-static"
echo "${opts}"
}
+# Massage the git repo a little
+if [ "${PV}" = "9999"]; then
src_unpack() {
- if [ "${PV}" = "9999" ]; then
- git_src_unpack
- else
- unpack ${A}
- fi
+ git_src_unpack
cd "${S}"
# GIT has this rpath for testing, but we need to disable it as it's
@@ -66,13 +65,9 @@ src_unpack() {
# Ensure a .depend always exists as it should not be in GIT
[ -e src/.depend ] || touch -r / src/.depend
}
+fi
src_compile() {
- use static && append-ldflags -static
-
- # Brand OpenRC, give users warm fuzzies
- local os=""
-
emake $(make_opts) CC=$(tc-getCC) depend || die
emake $(make_opts) CC=$(tc-getCC) || die
}