• 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/mongrel2/0003-Fix-Makefiles-for-cross-compilation.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
 
1
From 298356c44a7df2b34c4e307c531d2010e2cb4b79 Mon Sep 17 00:00:00 2001
2
From: Lionel Orry <lionel.orry@gmail.com>
3
Date: Wed, 27 Mar 2013 15:56:56 +0100
4
Subject: [PATCH 1/1] Fix Makefiles for cross-compilation
5
​
6
The CFLAGS handling in mongrel2 is really messy and it is hard to make
7
it behave correctly with cross-compiling environments. This patch
8
restricts the Makefiles syntax to GNU Make, but help cross-compiling.
9
​
10
This is not meant to be applied upstream.
11
​
12
Signed-off-by: Lionel Orry <lionel.orry@gmail.com>
13
---
14
 Makefile                      | 2 +-
15
 tools/config_modules/Makefile | 2 +-
16
 tools/filters/Makefile        | 2 +-
17
 tools/m2sh/Makefile           | 2 +-
18
 tools/procer/Makefile         | 2 +-
19
 5 files changed, 5 insertions(+), 5 deletions(-)
20
​
21
diff --git a/Makefile b/Makefile
22
index 6dce4a6..d48e05e 100644
23
--- a/Makefile
24
+++ b/Makefile
25
@@ -1,4 +1,4 @@
26
-CFLAGS=-g -O2 -Wall -Wextra -Isrc -Isrc/polarssl/include -pthread -rdynamic -DNDEBUG $(OPTFLAGS) -D_FILE_OFFSET_BITS=64
27
+override CFLAGS += -g -O2 -Wall -Wextra -Isrc -Isrc/polarssl/include -pthread -rdynamic -DNDEBUG $(OPTFLAGS) -D_FILE_OFFSET_BITS=64
28
 LIBS=-lzmq -ldl -lsqlite3 $(OPTLIBS)
29
 PREFIX?=/usr/local
30
 
31
diff --git a/tools/config_modules/Makefile b/tools/config_modules/Makefile
32
index 398490c..53f2255 100644
33
--- a/tools/config_modules/Makefile
34
+++ b/tools/config_modules/Makefile
35
@@ -1,5 +1,5 @@
36
 PREFIX?=/usr/local
37
-CFLAGS=-I../../src -I../../src/polarssl/include $(OPTFLAGS) -fPIC -shared -nostartfiles -L../../build
38
+override CFLAGS += -I../../src -I../../src/polarssl/include $(OPTFLAGS) -fPIC -shared -nostartfiles -L../../build
39
 LDFLAGS=$(OPTLIBS)
40
 
41
 MONGO_SRC = mongo-c-driver/src/bson.c \
42
diff --git a/tools/filters/Makefile b/tools/filters/Makefile
43
index f9f4556..6077b79 100644
44
--- a/tools/filters/Makefile
45
+++ b/tools/filters/Makefile
46
@@ -1,5 +1,5 @@
47
 PREFIX?=/usr/local
48
-CFLAGS=-I../../src -I../../src/polarssl/include $(OPTFLAGS) -g -fPIC -shared -nostartfiles -L../../build
49
+ override CFLAGS += -I../../src -I../../src/polarssl/include $(OPTFLAGS) -g -fPIC -shared -nostartfiles -L../../build
50
 LDFLAGS=$(OPTLIBS)
51
 
52
 all: null.so
53
diff --git a/tools/m2sh/Makefile b/tools/m2sh/Makefile
54
index b50d8a0..ba378c5 100644
55
--- a/tools/m2sh/Makefile
56
+++ b/tools/m2sh/Makefile
57
@@ -1,4 +1,4 @@
58
-CFLAGS=-DNDEBUG -DNO_LINENOS -pthread -g -I../../src -Isrc -Wall $(OPTFLAGS)
59
+override CFLAGS += -DNDEBUG -DNO_LINENOS -pthread -g -I../../src -Isrc -Wall $(OPTFLAGS)
60
 LIBS=-lzmq -lsqlite3 ../../build/libm2.a $(OPTLIBS)
61
 
62
 PREFIX?=/usr/local
63
diff --git a/tools/procer/Makefile b/tools/procer/Makefile
  • 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.