Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
network
libsocketcan
0003-build-avoid-overriding-user-s-CFLAGS.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-build-avoid-overriding-user-s-CFLAGS.patch of Package libsocketcan
From ac258ff2403e43a3b29bedea117fa6b2e22c84a0 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt <jengelh@inai.de> Date: Sun, 30 Dec 2012 08:16:30 +0100 Subject: [PATCH 3/3] build: avoid overriding user's CFLAGS When attempting to `./configure CFLAGS=-O3`, -O2 is still taking precedence. CFLAGS *must* *not* be touched - this is a user variable. This patch fixes that. Signed-off-by: Jan Engelhardt <jengelh@inai.de> --- configure.ac | 7 ++++--- src/GNUmakefile.am | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) Index: libsocketcan-0.0.11/configure.ac =================================================================== --- libsocketcan-0.0.11.orig/configure.ac +++ libsocketcan-0.0.11/configure.ac @@ -10,7 +10,7 @@ AC_CONFIG_AUX_DIR([config/autoconf]) AC_CANONICAL_BUILD AC_CANONICAL_HOST -CFLAGS="${CFLAGS} -Wall" +my_CFLAGS="-Wall" # # libtool library versioning stuff @@ -92,11 +92,12 @@ AC_ARG_ENABLE(debug, [CONFIG_DEBUG=no]) AC_MSG_RESULT([${CONFIG_DEBUG}]) if test "${CONFIG_DEBUG}" = "yes"; then - CFLAGS="${CFLAGS} -Werror -Wsign-compare -Wfloat-equal -Wformat-security -g -O1" + my_CFLAGS="$my_CFLAGS -Werror -Wsign-compare -Wfloat-equal -Wformat-security -g -O1" AC_DEFINE(DEBUG, 1, [debugging]) else - CFLAGS="${CFLAGS} -O2" + my_CFLAGS="$my_CFLAGS -O2" fi +AC_SUBST([my_CFLAGS]) # Index: libsocketcan-0.0.11/src/GNUmakefile.am =================================================================== --- libsocketcan-0.0.11.orig/src/GNUmakefile.am +++ libsocketcan-0.0.11/src/GNUmakefile.am @@ -1,5 +1,6 @@ lib_LTLIBRARIES = libsocketcan.la +AM_CFLAGS = ${my_CFLAGS} AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_builddir)/include
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor