Skip to content

Commit

Permalink
mold: bump to 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyn-corner committed Jul 27, 2022
1 parent 8ca4654 commit e2d6ee2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 21 deletions.
33 changes: 15 additions & 18 deletions gpl/mold/build
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,25 @@ CXXFLAGS=$(printf %s "$CXXFLAGS" | sed 's/-flto=thin//')

export LDFLAGS="$LDFLAGS -static"

${CC:-cc} $CFLAGS -c -o third-party/xxhash/xxhash.o third-party/xxhash/xxhash.c
${AR:-ar} rcs third-party/xxhash/libxxhash.a third-party/xxhash/xxhash.o

make -C third-party/mimalloc -f makefile.mimalloc
make -C third-party/tbb -f makefile.tbb

# Point mold to the local xxhash.
export CFLAGS="$CFLAGS -Lthird-party/mimalloc -Lthird-party/tbb \
-Lthird-party/xxhash"
export CFLAGS="$CFLAGS -Ithird-party/mimalloc -Ithird-party/tbb \
-Ithird-party/xxhash"

make PREFIX=/usr
make PREFIX=/usr DESTDIR="$1" install
gmake CXX=clang++
#${CC:-cc} $CFLAGS -c -o third-party/xxhash/xxhash.o third-party/xxhash/xxhash.c
#${AR:-ar} rcs third-party/xxhash/libxxhash.a third-party/xxhash/xxhash.o
#
#make -C third-party/mimalloc -f makefile.mimalloc
#make -C third-party/tbb -f makefile.tbb
#
## Point mold to the local xxhash.
#export CFLAGS="$CFLAGS -Lthird-party/mimalloc -Lthird-party/tbb \
# -Lthird-party/xxhash"
#export CFLAGS="$CFLAGS -Ithird-party/mimalloc -Ithird-party/tbb \
# -Ithird-party/xxhash"
#
#make PREFIX=/usr
gmake PREFIX=/usr DESTDIR="$1" install

# Create a symbolic link so users can use mold as the linker system-wide
# (without need for special CFLAGS/CXXFLAGS).
ln -sf mold "$1/usr/bin/ld"

# To tell GCC to use mold we must put a symlink to it in a directory and set it
# to search for the linker within.
ln -sf ../../bin/mold "$1/usr/lib/mold/ld"

# Install the license
install -Dm644 LICENSE "$1/usr/share/LICENSES/mold.license"
2 changes: 1 addition & 1 deletion gpl/mold/checksums
Original file line number Diff line number Diff line change
@@ -1 +1 @@
41868663ff18afee3fa35e5e3fdf3d9575eb2e4ff49967b8f42f479c61c1ec34
7422b9b4509fa121442b78326f1e6cadafb2f4eefe30847827fa80bbd4d8e191
2 changes: 1 addition & 1 deletion gpl/mold/sources
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://github.com/rui314/mold/archive/v1.2.1.tar.gz
https://github.com/rui314/mold/archive/v1.3.1.tar.gz
2 changes: 1 addition & 1 deletion gpl/mold/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.1 1
1.3.1 1

0 comments on commit e2d6ee2

Please sign in to comment.