Browse Source

gcc: add cc symlink

fixes #14755

Signed-off-by: Dirk Neukirchen <plntyk.lede@plntyk.name>
lilik-openwrt-22.03
Dirk Neukirchen 4 years ago
parent
commit
55cb4d1aee
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      devel/gcc/Makefile

+ 2
- 1
devel/gcc/Makefile View File

@ -24,7 +24,7 @@ endef
PKG_NAME:=gcc PKG_NAME:=gcc
# PKG_VERSION=7.3.0 # PKG_VERSION=7.3.0
PKG_VERSION=7.4.0 PKG_VERSION=7.4.0
PKG_RELEASE:=5
PKG_RELEASE:=6
PKG_SOURCE_URL:=@GNU/gcc/gcc-$(PKG_VERSION) PKG_SOURCE_URL:=@GNU/gcc/gcc-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_INSTALL:=1 PKG_INSTALL:=1
@ -192,6 +192,7 @@ define Package/gcc/install
ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/g++ ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/g++
ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/$(REAL_GNU_TARGET_NAME)-c++ ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/$(REAL_GNU_TARGET_NAME)-c++
ln -s $(REAL_GNU_TARGET_NAME)-gcc $(1)/usr/bin/gcc ln -s $(REAL_GNU_TARGET_NAME)-gcc $(1)/usr/bin/gcc
ln -s $(REAL_GNU_TARGET_NAME)-gcc $(1)/usr/bin/cc
ln -s $(REAL_GNU_TARGET_NAME)-gcc $(1)/usr/bin/$(REAL_GNU_TARGET_NAME)-gcc-$(PKG_VERSION) ln -s $(REAL_GNU_TARGET_NAME)-gcc $(1)/usr/bin/$(REAL_GNU_TARGET_NAME)-gcc-$(PKG_VERSION)
cp -ar $(PKG_INSTALL_DIR)/usr/lib/gcc $(1)/usr/lib cp -ar $(PKG_INSTALL_DIR)/usr/lib/gcc $(1)/usr/lib
cp -ar $(TOOLCHAIN_DIR)/include $(1)/usr cp -ar $(TOOLCHAIN_DIR)/include $(1)/usr


Loading…
Cancel
Save