Skip to content

Instantly share code, notes, and snippets.

@mh61503891
Created January 17, 2012 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mh61503891/1628031 to your computer and use it in GitHub Desktop.
Save mh61503891/1628031 to your computer and use it in GitHub Desktop.
DummynetをDebian6でビルドできるようにするためのパッチ
--- ipfw3/dummynet2/Makefile.orig 2012-01-18 02:51:29.000000000 +0900
+++ ipfw3/dummynet2/Makefile 2012-01-18 02:51:42.000000000 +0900
@@ -55,8 +55,8 @@
ipfw-cflags += -D_BSD_SOURCE
ipfw-cflags += -DKERNEL_MODULE # build linux kernel module
# the two header trees for empty and override files
-ipfw-cflags += -I $(M)/include_e
-ipfw-cflags += -I $(M)/include
+ipfw-cflags += -I$(M)/include_e
+ipfw-cflags += -I$(M)/include
ipfw-cflags += -include $(M)/../glue.h # headers
ipfw-cflags += -include $(M)/missing.h # headers
@mh61503891
Copy link
Author

-Iはヘッダファイルを検索するディレクトリを指定するgccのオプション。
-Iとディレクトリパスの間にある空白スペースと取るとビルドできたが理由は良くわからない。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment