• 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/cc-tool/0003-Makefile.am-do-not-overwrite-LIBS.patch
Thomas PetazzoniThomas Petazzoni committed a3b1e975af320 Aug 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From af3098e05535ddb93bb065770d87738e46089efc Mon Sep 17 00:00:00 2001
2
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3
Date: Sun, 20 Aug 2017 15:06:01 +0200
4
Subject: [PATCH] Makefile.am: do not overwrite LIBS
5
​
6
LIBS is meant to be passed on the command line with additional
7
libraries, it should not be overwritten by Makefile.am.
8
​
9
Instead:
10
​
11
 - Use LDADD to link with external libraries
12
​
13
 - Use <target>_LDFLAGS for additional, non-libraries, linker flags
14
​
15
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
16
Upstream: https://github.com/dashesy/cc-tool/commit/553f9c601646af0c6e3f6150d0fa3bc63ff56416
17
---
18
 Makefile.am | 8 +++-----
19
 1 file changed, 3 insertions(+), 5 deletions(-)
20
​
21
diff --git a/Makefile.am b/Makefile.am
22
index e79e47b..ed83d91 100644
23
--- a/Makefile.am
24
+++ b/Makefile.am
25
@@ -10,14 +10,12 @@ AM_LDFLAGS = \
26
 
27
 #  $(BOOST_THREADS_LDFLAGS)
28
       
29
-LDADD = $(LIBUSB_LIBS) 
30
-
31
-LIBS = -s \
32
+LDADD = $(LIBUSB_LIBS) \
33
    $(BOOST_FILESYSTEM_LIBS) \
34
    $(BOOST_REGEX_LIBS) \
35
    $(BOOST_SYSTEM_LIBS) \
36
    $(BOOST_PROGRAM_OPTIONS_LIBS)
37
-   
38
+
39
 #  $(BOOST_THREADS_LIBS)
40
 
41
 bin_PROGRAMS=cc-tool
42
@@ -30,4 +28,4 @@ cc_tool_SOURCES=src/main.cpp src/application/cc_flasher.cpp src/application/cc_b
43
        src/programmer/cc_253x_254x.cpp src/programmer/cc_251x_111x.cpp \
44
        src/programmer/cc_243x.cpp src/programmer/cc_programmer.cpp \
45
        src/programmer/cc_unit_driver.cpp src/programmer/cc_unit_info.cpp
46
-
47
+cc_tool_LDFLAGS=-s
48
-- 
49
2.9.4
50
​
  • 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.