diff options
-rw-r--r-- | sys-apps/openrc/openrc-9999.ebuild | 15 |
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 } |