• 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/dmidecode/dmidecode-build-system-fixes.patch
Thomas PetazzoniThomas Petazzoni committed 9d3547529b802 Jun 2012
Raw file
Source viewDiff to previous
 
1
Minor build system fixes
2
​
3
Usual build system fixes to allow CC/CFLAGS/LDFLAGS to be overriden
4
from the command line, and completed by additional flags from the
5
Makefile.
6
​
7
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8
​
9
Index: b/Makefile
10
===================================================================
11
--- a/Makefile
12
+++ b/Makefile
13
@@ -12,9 +12,10 @@
14
 #   (at your option) any later version.
15
 #
16
 
17
-CC      = gcc
18
-CFLAGS  = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
19
-          -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef
20
+CC      ?= gcc
21
+override CFLAGS  += \
22
+   -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
23
+        -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef
24
 #CFLAGS += -DBIGENDIAN
25
 #CFLAGS += -DALIGNMENT_WORKAROUND
26
 
27
@@ -23,7 +24,7 @@
28
 #CFLAGS += -g
29
 
30
 # Pass linker flags here
31
-LDFLAGS =
32
+override LDFLAGS +=
33
 
34
 DESTDIR =
35
 prefix  = /usr/local
  • 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.