• 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/libscrypt/0001-Allow-adding-options-to-CFLAGS-and-LDFLAGS-variables.patch
Stefan SørensenStefan Sørensen committed 4ac1a2b1bae14 Mar 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 097c5d9248f4afd34c73de5aba01a143ef784257 Mon Sep 17 00:00:00 2001
2
From: =?UTF-8?q?Stefan=20S=C3=B8rensen?= <stefan.sorensen@spectralink.com>
3
Date: Tue, 14 Mar 2017 09:23:51 +0100
4
Subject: [PATCH] Allow adding options to CFLAGS and LDFLAGS variables
5
MIME-Version: 1.0
6
Content-Type: text/plain; charset=UTF-8
7
Content-Transfer-Encoding: 8bit
8
​
9
This also removes a number of hard-coded CFLAGS, leaving it up to the
10
user to pass appropriate optimization/hardening flags.
11
​
12
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
13
---
14
 Makefile | 4 ++--
15
 1 file changed, 2 insertions(+), 2 deletions(-)
16
​
17
diff --git a/Makefile b/Makefile
18
index 7022a4a..3098a9a 100644
19
--- a/Makefile
20
+++ b/Makefile
21
@@ -5,8 +5,8 @@ MAKE_DIR     ?= install -d
22
 INSTALL_DATA ?= install
23
 
24
 CC?=gcc
25
-CFLAGS?=-O2 -Wall -g -D_FORTIFY_SOURCE=2 -fstack-protector -fPIC
26
-LDFLAGS?=-Wl,-z,now -Wl,-z,relro -Wl,-soname,libscrypt.so.0 -Wl,--version-script=libscrypt.version
27
+override CFLAGS+=-fPIC
28
+override LDFLAGS+=-Wl,-z,now -Wl,-z,relro -Wl,-soname,libscrypt.so.0 -Wl,--version-script=libscrypt.version
29
 CFLAGS_EXTRA?=-Wl,-rpath=.
30
 
31
 all: reference
32
-- 
33
2.7.4
34
​
  • 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.