Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. --- /usr/portage/dev-lang/python/python-2.7.1-r1.ebuild 2011-04-22 20:31:07.000000000 +0200
  2. +++ /usr/local/portage/dev-lang/python/python-2.7.1-r1.ebuild 2011-05-15 01:12:00.193900146 +0200
  3. @@ -33,7 +33,8 @@ LICENSE="PSF-2.2"
  4. SLOT="2.7"
  5. PYTHON_ABI="${SLOT}"
  6. KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
  7. -IUSE="-berkdb build doc elibc_uclibc examples gdbm ipv6 +ncurses +readline sqlite +ssl +threads tk +wide-unicode wininst +xml"
  8. +IUSE="-berkdb build doc elibc_uclibc examples gdbm ipv6 +ncurses +readline
  9. +sqlite +ssl +threads tk +wide-unicode wininst +xml static"
  10.  
  11. RDEPEND=">=app-admin/eselect-python-20091230
  12. >=sys-libs/zlib-1.1.3
  13. @@ -140,6 +141,10 @@ src_prepare() {
  14. sed -e "s/\(-DSVNVERSION=\).*\( -o\)/\1\\\\\"${ESVN_REVISION}\\\\\"\2/" -i Makefile.pre.in || die "sed failed"
  15. fi
  16.  
  17. + if use static; then
  18. + sed -i -e 's/^#\*shared\*/*static*/' Modules/Setup.dist || die "blaaaaaaa!"
  19. + fi
  20. +
  21. eautoreconf
  22. }
  23.  
  24. @@ -209,6 +214,12 @@ src_configure() {
  25. # Please query BSD team before removing this!
  26. append-ldflags "-L."
  27.  
  28. + # Static linking
  29. + if use static; then
  30. + append-ldflags "-static -static-libgcc"
  31. + append-flags "-static -fPIC"
  32. + fi
  33. +
  34. local dbmliborder
  35. if use gdbm; then
  36. dbmliborder+="${dbmliborder:+:}gdbm"
  37. @@ -219,7 +230,7 @@ src_configure() {
  38.  
  39. OPT="" econf \
  40. --with-fpectl \
  41. - --enable-shared \
  42. + $(use_enable !static shared)
  43. $(use_enable ipv6) \
  44. $(use_with threads) \
  45. $(use wide-unicode && echo "--enable-unicode=ucs4" || echo "--enable-unicode=ucs2") \
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement