• 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/netplug/netplug-1.2.9.2-makefile-flags.patch
Martin BankyMartin Banky committed 20d4792e5ba12 Dec 2010
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
Preserve the cflags settings, because buildroot clobbers them.
​
--- a/Makefile  2010-10-05 00:06:38.000000000 -0700
+++ b/Makefile  2010-10-05 00:15:27.000000000 -0700
@@ -11,11 +11,14 @@ mandir ?= $(prefix)/usr/share/man
 
 install_opts :=
 
-CFLAGS += -Wall -std=gnu99 -DNP_ETC_DIR='"$(etcdir)"' \
+NETPLUG_CFLAGS += -Wall -std=gnu99 -DNP_ETC_DIR='"$(etcdir)"' \
    -DNP_SCRIPT_DIR='"$(scriptdir)"' -ggdb3 -O3 -DNP_VERSION='"$(version)"'
 
+%.o: %.c
+   $(CC) $(NETPLUG_CFLAGS) $(CFLAGS) -c -o $@ $<
+
 netplugd: config.o netlink.o lib.o if_info.o main.o
-   $(CC) $(LDFLAGS) -o $@ $^
+   $(CC) $(LDFLAGS) -o $@ $(NETPLUG_CFLAGS) $^
 
 install:
    install -d $(install_opts) -m 755 \
  • 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.