Skip to content

Commit

Permalink
gcc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
michacassola committed May 17, 2024
1 parent 6059c2b commit 9d44312
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions unypkg-base-build-stage2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ ln -sfv /uny/pkg/"$pkgname"/"$pkgver"/share/zoneinfo/Europe/Berlin /etc/localtim
cleanup_verbose_off_timing_end
######################################################################################################################
### Prepare gcc-shared libs until replaced with gcc's below
### Prepare gcc libs until replaced with gcc's below
gcc_ver="$(echo /sources/gcc-* | grep -Eo "gcc-[^0-9]*(([0-9]+\.)*[0-9]+)" | sort -u | sed "s|gcc-||")"
mkdir -pv /uny/pkg/gcc/"$gcc_ver"/lib
Expand Down Expand Up @@ -1092,7 +1092,7 @@ cleanup_verbose_off_timing_end
######################################################################################################################
### GCC
pkgname="gcc-shared"
pkgname="gcc"
version_verbose_log_clean_unpack_cd
get_env_var_values
Expand Down Expand Up @@ -1138,12 +1138,6 @@ su tester -c "PATH=$PATH make -k -j$(nproc) check"
chown -R root:root .
make install
### Move bin, include and libexec directories to gcc folder
#mkdir -pv /uny/pkg/gcc/$pkgver
#mv -v /uny/pkg/$pkgname/$pkgver/bin /uny/pkg/gcc/$pkgver/bin
#mv -v /uny/pkg/$pkgname/$pkgver/include /uny/pkg/gcc/$pkgver/include
#mv -v /uny/pkg/$pkgname/$pkgver/libexec /uny/pkg/gcc/$pkgver/libexec
ln -sv gcc /uny/pkg/gcc/"$pkgver"/bin/cc
ln -svr /uny/pkg/gcc/"$pkgver"/bin/cpp /uny/pkg/"$pkgname"/"$pkgver"/lib
ln -sfv /uny/pkg/gcc/"$pkgver"/libexec/gcc/"$(gcc -dumpmachine)"/"$pkgver"/liblto_plugin.so \
Expand All @@ -1155,11 +1149,6 @@ echo -n "/uny/pkg/gcc/$pkgver/include:/uny/pkg/gcc/$pkgver/include/c++/$pkgver"
### End of individual build script
add_to_paths_files
### Also add gcc folders to paths files
#pkgname="gcc"
#add_to_paths_files
dependencies_file_and_unset_vars
cleanup_verbose_off_timing_end
Expand Down

0 comments on commit 9d44312

Please sign in to comment.