From cdd0832671d59b90e4a6947c43096057c0be1d53 Mon Sep 17 00:00:00 2001 From: Alan Brault Date: Tue, 7 Dec 2010 20:05:47 -0500 Subject: - Alter CFLAGS to produce a more sane binary with less problems - Fix libtool and linker LDFLAGS to ensure a static build - Add missing README required by GPL for libsysfs --- src/Makefile.am | 4 ++-- src/Makefile.in | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index f7788aa..59341eb 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,7 @@ AUTOMAKE_OPTIONS = foreign -AM_CFLAGS=-Wall -O2 -I../include -static -AM_LDFLAGS=-lpthread -lrt -lsysfs +AM_CFLAGS=-Wall -W -Wstrict-prototypes -I../include -static +AM_LDFLAGS=-L../libsysfs -lpthread -lsysfs -version-info 2:0:2 -all-static sbin_PROGRAMS= netnuke diff --git a/src/Makefile.in b/src/Makefile.in index b428323..124f871 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -38,7 +38,7 @@ sbin_PROGRAMS = netnuke$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d @@ -181,8 +181,8 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = foreign -AM_CFLAGS = -Wall -O2 -I../include -static -AM_LDFLAGS = -lpthread -lrt -lsysfs +AM_CFLAGS = -Wall -W -Wstrict-prototypes -I../include -static +AM_LDFLAGS = -L../libsysfs -lpthread -lsysfs -version-info 2:0:2 -all-static netnuke_SOURCES = bus.c \ misc.c \ netnuke.c \ -- cgit