• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gcc/4.8.5/851-PR-other-56780.patch
Peter KorsgaardPeter Korsgaard committed 7654d687b2d24 Jun 2015
Raw file
Source viewDiff to previous
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libiberty headers and static library" >&5
 
1
From afe990251bd9b3a063f03da31a3b8d139d033bc3 Mon Sep 17 00:00:00 2001
2
From: ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
3
Date: Sat, 1 Jun 2013 00:20:49 +0000
4
Subject: [PATCH] PR other/56780
5
​
6
* libiberty/configure.ac: Move test for --enable-install-libiberty
7
outside of the 'with_target_subdir' test so that it actually gets
8
run.  Add output messages to show the test result.
9
* libiberty/configure: Regenerate.
10
* libiberty/Makefile.in (install_to_libdir): Place the
11
installation of the libiberty library in the same guard as that
12
used for the headers to prevent it being installed unless
13
requested via --enable-install-libiberty.
14
​
15
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199570 138bc75d-0d04-0410-961f-82ee72b054a4
16
​
17
libiberty: fix --enable-install-libiberty flag [PR 56780]
18
​
19
Commit 199570 fixed the --disable-install-libiberty behavior, but it also
20
added a bug where the enable path never works because the initial clear
21
of target_header_dir wasn't deleted.  So we end up initializing properly
22
at the top only to reset it at the end all the time.
23
​
24
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206367 138bc75d-0d04-0410-961f-82ee72b054a4
25
​
26
[Romain
27
  squash the two upstream commits
28
  Remove the ChangeLog]
29
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
30
---
31
 libiberty/Makefile.in  | 24 ++++++++++-----------
32
 libiberty/configure    | 57 +++++++++++++++++++++++++++-----------------------
33
 libiberty/configure.ac | 47 ++++++++++++++++++++++-------------------
34
 3 files changed, 68 insertions(+), 60 deletions(-)
35
​
36
diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in
37
index f6a3ebd..75ff82d 100644
38
--- a/libiberty/Makefile.in
39
+++ b/libiberty/Makefile.in
40
@@ -355,19 +355,19 @@ install-strip: install
41
 # since it will be passed the multilib flags.
42
 MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
43
 install_to_libdir: all
44
-   ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR)
45
-   $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n
46
-   ( cd $(DESTDIR)$(libdir)/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n ;$(RANLIB) $(TARGETLIB)n )
47
-   mv -f $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)
48
    if test -n "${target_header_dir}"; then \
49
-     case "${target_header_dir}" in \
50
-       /*)    thd=${target_header_dir};; \
51
-       *)     thd=${includedir}/${target_header_dir};; \
52
-     esac; \
53
-     ${mkinstalldirs} $(DESTDIR)$${thd}; \
54
-     for h in ${INSTALLED_HEADERS}; do \
55
-       ${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \
56
-     done; \
57
+       ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR); \
58
+       $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n; \
59
+       ( cd $(DESTDIR)$(libdir)/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n ;$(RANLIB) $(TARGETLIB)n ); \
60
+       mv -f $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB); \
61
+       case "${target_header_dir}" in \
62
+         /*)    thd=${target_header_dir};; \
63
+         *)     thd=${includedir}/${target_header_dir};; \
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.