summaryrefslogtreecommitdiff
path: root/repo/system
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-04 22:21:05 +0000
committerdavidovski <david@davidovski.xyz>2022-03-04 22:21:05 +0000
commit5bbf53467cd7b68557d8e37332968081c64e9908 (patch)
treeba66b660a35083ac68e147028f1a054ca9013d52 /repo/system
parent4af40fdd23ad45fb9466c101044dbecb5b8bb2b2 (diff)
removing pic
Diffstat (limited to 'repo/system')
-rw-r--r--repo/system/binutils.xibuild7
-rw-r--r--repo/system/js78.xibuild42
2 files changed, 3 insertions, 46 deletions
diff --git a/repo/system/binutils.xibuild b/repo/system/binutils.xibuild
index d57d538..b8f383e 100644
--- a/repo/system/binutils.xibuild
+++ b/repo/system/binutils.xibuild
@@ -49,9 +49,8 @@ build () {
--enable-threads \
--disable-multilib \
--with-mmap \
- --with-pic \
--enable-64-bit-bfd \
- --with-pic $EXTRA_CONFIG
+ $EXTRA_CONFIG
make tooldir=/usr
}
@@ -65,8 +64,8 @@ package() {
cd ..
# how about we use binutils ld?
- #rm -f $PKG_DEST/usr/bin/ld
- #ln -sf /usr/bin/ld.bfd $PKG_DEST/usr/bin/ld
+ rm -f $PKG_DEST/usr/bin/ld
+ ln -sf /usr/bin/ld.bfd $PKG_DEST/usr/bin/ld
install -m 644 include/libiberty.h $PKG_DEST/usr/include
install -m 644 include/demangle.h $PKG_DEST/usr/include
diff --git a/repo/system/js78.xibuild b/repo/system/js78.xibuild
deleted file mode 100644
index 7b88f18..0000000
--- a/repo/system/js78.xibuild
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/sh
-
-MAKEDEPS="gcc autoconf2-13 icu rustc which zip llvm patch make"
-DEPS="readline bash zlib"
-
-PKG_VER=78.15.0
-SOURCE=https://archive.mozilla.org/pub/firefox/releases/${PKG_VER}esr/source/firefox-${PKG_VER}esr.source.tar.xz
-ADDITIONAL="
- https://www.linuxfromscratch.org/patches/blfs/svn/js-$PKG_VER-python_3_10-1.patch
- "
-
-DESC="JavaScript interpreter and libraries - Version 78"
-
-prepare () {
- patch -Np1 -i js-$PKG_VER-python_3_10-1.patch
-
- mountpoint -q /dev/shm || mount -t tmpfs devshm /dev/shm
- export PATH=/opt/rustc/bin:$PATH
- export LD_LIBRARY_PATH=/opt/rustc/lib:$LD_LIBRARY_PATH
-}
-
-build () {
- mkdir obj &&
- cd obj &&
-
- CC=gcc CXX=g++ \
- ../js/src/configure --prefix=/usr \
- --with-intl-api \
- --with-system-zlib \
- --with-system-icu \
- --disable-jemalloc \
- --disable-debug-symbols \
- --enable-readline &&
- make
-
-}
-
-package () {
- make DESTDIR=$PKG_DEST install
- [ -f $PKG_DEST/usr/lib/libjs_static.ajs ] && rm $PKG_DEST/usr/lib/libjs_static.ajs
- sed -i '/@NSPR_CFLAGS@/d' $PKG_DEST/usr/bin/js78-config
-}