• 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/cloop/0001-cflags.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
Take into account the CFLAGS/LDFLAGS passed in the environment.
2
​
3
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4
​
5
Index: host-cloop-2.634-1/Makefile
6
===================================================================
7
--- host-cloop-2.634-1.orig/Makefile    2010-12-16 09:17:52.826555645 +0100
8
+++ host-cloop-2.634-1/Makefile 2010-12-16 09:18:57.208713338 +0100
9
@@ -15,7 +15,7 @@
10
 endif
11
 
12
 ifdef APPSONLY
13
-CFLAGS:=-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -s -I. -fno-strict-aliasing -fno-common -fomit-frame-pointer 
14
+CLOOP_CFLAGS:=-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -s -I. -fno-strict-aliasing -fno-common -fomit-frame-pointer 
15
 endif
16
 
17
 KERNOBJ:=compressed_loop.o
18
@@ -53,10 +53,10 @@
19
    ( cd advancecomp-1.15 ; ./configure && $(MAKE) advfs )
20
 
21
 extract_compressed_fs: extract_compressed_fs.c
22
-   $(CC) -Wall -O2 -s -o $@ $< -lz
23
+   $(CC) $(CFLAGS) $(CLOOP_CFLAGS) $(LDFLAGS) -Wall -O2 -s -o $@ $< -lz
24
 
25
 cloop_suspend: cloop_suspend.o
26
-   $(CC) -o $@ $<
27
+   $(CC) $(CFLAGS) $(CLOOP_CFLAGS) $(LDFLAGS) -o $@ $<
28
 
29
 clean:
30
    rm -rf create_compressed_fs extract_compressed_fs zoom *.o *.ko Module.symvers .cloop* .compressed_loop.* .tmp*
  • 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.