Browse Source

Merge pull request #15008 from plntyk/gcc_add_cc_symlink

gcc: add cc symlink
lilik-openwrt-22.03
Rosen Penev 4 years ago
committed by GitHub
parent
commit
3ab59845a7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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