summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/baselibs.conf8
1 files changed, 4 insertions, 4 deletions
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
index c7866f5..4668884 100644
--- a/packaging/baselibs.conf
+++ b/packaging/baselibs.conf
@@ -57,7 +57,7 @@ qemu-accel-armv7l
post "builtin echo 0 >/proc/sys/vm/mmap_min_addr"
post ""
post "if [ -f /usr/bin/gcc ] ; then"
- post " export GCCVER=$(LANG=C gcc --version | head -1 | sed -e "s/^.*gcc[^0-9]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\1.\2/") "
+ post " export GCCVER=$(LANG=C gcc --version | head -1 | sed -e "s/^.*gcc[^0-9]*\(\([0-9]*\.\)\+[0-9]*\).*$/\1/") "
post " # Create symlinks to files needed by native ld for the case if we want to use it instead of cross ld:"
post " for f in crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o ; do"
post " ln -s /usr/lib/gcc/armv7l-tizen-linux-gnueabi/${GCCVER}/$f /usr/armv7l-tizen-linux-gnueabi/bin/$f;"
@@ -75,7 +75,7 @@ qemu-accel-armv7l
post ""
postun "HOST_ARCH=`echo -n %{_host_cpu} | sed -e 's/i.86/i586/'`"
postun "ACCEL_DIR=/emul/$HOST_ARCH-for-arm"
- postun "GCCVER=$(LANG=C gcc --version | head -1 | sed -e "s/^.*gcc[^0-9]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\1.\2/") "
+ postun "GCCVER=$(LANG=C gcc --version | head -1 | sed -e "s/^.*gcc[^0-9]*\(\([0-9]*\.\)\+[0-9]*\).*$/\1/") "
postun "%_sbindir/update-alternatives --remove \"
postun " liblto_plugin_%{_arch}.so \"
postun " $ACCEL_DIR/usr/lib/gcc/armv7l-tizen-linux-gnueabi/${GCCVER}/liblto_plugin.so"
@@ -140,7 +140,7 @@ qemu-accel-aarch64
post "echo 0 >/proc/sys/vm/mmap_min_addr"
post ""
post "if [ -f /usr/bin/gcc ] ; then"
- post " export GCCVER=$(LANG=C gcc --version | head -1 | sed -e "s/^.*gcc[^0-9]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\1.\2/") "
+ post " export GCCVER=$(LANG=C gcc --version | head -1 | sed -e "s/^.*gcc[^0-9]*\(\([0-9]*\.\)\+[0-9]*\).*$/\1/") "
post " # Create symlinks to files needed by native ld for the case if we want to use it instead of cross ld:"
post " for f in crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o ; do"
post " ln -s /usr/lib64/gcc/aarch64-tizen-linux/${GCCVER}/$f /usr/lib/$f;"
@@ -158,7 +158,7 @@ qemu-accel-aarch64
post ""
postun "HOST_ARCH=`echo -n %{_host_cpu} | sed -e 's/i.86/i586/'`"
postun "ACCEL_DIR=/emul/$HOST_ARCH-for-aarch64"
- postun "GCCVER=$(LANG=C gcc --version | head -1 | sed -e "s/^.*gcc[^0-9]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\1.\2/") "
+ postun "GCCVER=$(LANG=C gcc --version | head -1 | sed -e "s/^.*gcc[^0-9]*\(\([0-9]*\.\)\+[0-9]*\).*$/\1/") "
postun "%_sbindir/update-alternatives --remove \"
postun " liblto_plugin_%{_arch}.so \"
postun " $ACCEL_DIR/usr/lib/gcc/aarch64-tizen-linux/${GCCVER}/liblto_plugin.so"