diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2018-08-13 23:36:20 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2018-08-13 23:36:20 +0100 |
commit | 39af3214ed29d9a3ca867988f7f2f3b995cafd66 (patch) | |
tree | f87b9ae0c317588eca0a07134557052c9818b529 | |
parent | gcc-config: fix tests (drop einfo for LTO plugin) (diff) | |
download | gcc-config-39af3214ed29d9a3ca867988f7f2f3b995cafd66.tar.gz gcc-config-39af3214ed29d9a3ca867988f7f2f3b995cafd66.tar.bz2 gcc-config-39af3214ed29d9a3ca867988f7f2f3b995cafd66.zip |
rename installed binary wrapper from 'gcc-config' to 'wrapper'
Before the change installed directory was:
/usr/$(libexecdir)/misc/gcc-config
/usr/bin/gcc-config
After the change:
/usr/$(libexecdir)/gcc-config/wrapper
/usr/bin/gcc-config
Should decrease confusion between a script and wrapper binary.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rw-r--r-- | Makefile | 4 | ||||
-rwxr-xr-x | gcc-config | 6 |
2 files changed, 5 insertions, 5 deletions
@@ -13,7 +13,7 @@ BINDIR = $(PREFIX)/bin ESELECTDIR = $(PREFIX)/share/eselect/modules SUBLIBDIR = lib LIBDIR = $(PREFIX)/$(SUBLIBDIR) -LIBEXECDIR = $(LIBDIR)/misc +LIBEXECDIR = $(LIBDIR)/$(PN) MKDIR_P = mkdir -p -m 755 INSTALL_EXE = install -m 755 @@ -35,7 +35,7 @@ clean: install: all $(MKDIR_P) $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBEXECDIR) $(DESTDIR)$(ESELECTDIR) - $(INSTALL_EXE) wrapper $(DESTDIR)$(LIBEXECDIR)/$(PN) + $(INSTALL_EXE) wrapper $(DESTDIR)$(LIBEXECDIR)/wrapper $(INSTALL_EXE) .gcc-config $(DESTDIR)$(BINDIR)/gcc-config $(INSTALL_DATA) gcc.eselect $(DESTDIR)$(ESELECTDIR) @@ -198,9 +198,9 @@ update_wrappers() { local x CTARGET=$1 # Find the bin wrapper - local wrapper - for wrapper in ${GENTOO_LIBDIR} lib lib64 lib32 lib ; do - wrapper="${EROOT}usr/${wrapper}/misc/gcc-config" + local libdir wrapper + for libdir in ${GENTOO_LIBDIR} lib lib64 lib32 lib ; do + wrapper="${EROOT}usr/${libdir}/gcc-config/wrapper" [[ -e ${wrapper} ]] && break done |