A few cflags and comment fixups
authorEric Andersen <andersen@codepoet.org>
Sat, 18 Jan 2003 22:39:31 +0000 (22:39 -0000)
committerEric Andersen <andersen@codepoet.org>
Sat, 18 Jan 2003 22:39:31 +0000 (22:39 -0000)
make/ext2root.mk
make/linux.mk
make/mkdosfs.mk
make/newt.mk
make/zlib.mk

index ad0dd1db53c9bf90ae335d05a769cafb2b876045..bcc7b6e4649bc7c8c02fb4976b2ff7c816cca023 100644 (file)
@@ -17,7 +17,8 @@ $(GENEXT2_DIR): $(DL_DIR)/$(GENEXT2_SOURCE) $(GENEXT2_PATCH)
        cat $(GENEXT2_PATCH) | patch -p1 -d $(GENEXT2_DIR)
 
 $(GENEXT2_DIR)/genext2fs: $(GENEXT2_DIR)
-       $(MAKE) CFLAGS="-Wall -O2 -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64" -C $(GENEXT2_DIR);
+       $(MAKE) CFLAGS="Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \
+               -D_FILE_OFFSET_BITS=64" -C $(GENEXT2_DIR);
        touch -c $(GENEXT2_DIR)/genext2fs
 
 genext2fs: $(GENEXT2_DIR)/genext2fs
index 9fe3e66db5f060cfb0ed820c2c99c5e3808b998b..f2b2b3304c767304cd8d49d460288adcbf573162 100644 (file)
@@ -2,7 +2,7 @@
 #
 # Linux kernel targets
 #
-# Note:  If you have any patched to apply, create the directory
+# Note:  If you have any patches to apply, create the directory
 # sources/kernel-patches and put your patches in there and number
 # them in the order you wish to apply them...  i.e.
 #
@@ -12,6 +12,7 @@
 #   sources/kernel-patches/030-lowlatency-mini.bz2
 #   sources/kernel-patches/031-lowlatency-fixes-5.bz2
 #   sources/kernel-patches/099-shutup.bz2
+#   etc...
 #
 # these patches will all be applied by the patch-kernel.sh
 # script (which will also abort the build if it finds rejects)
index a3132686bd6d6e6c6cfc386dffd1a5882f728dd0..8fba46e87b33dab42cc0ca53fedc3d321c8ca7e7 100644 (file)
@@ -10,7 +10,7 @@ MKDOSFS_CAT:=zcat
 MKDOSFS_BINARY:=mkdosfs/mkdosfs
 MKDOSFS_TARGET_BINARY:=sbin/mkdosfs
 ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true)
-MKDOSFS_CFLAGS="-Os -g -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64"
+MKDOSFS_CFLAGS="-Os -g -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
 else
 MKDOSFS_CFLAGS="-Os -g"
 endif
index 56fba9ea056a0c41d0588d107857a4dca9a8c1cd..ac0c3a1cfdc5b7cddb5bff555c8df46eec360e88 100644 (file)
@@ -8,10 +8,11 @@ NEWT_SITE=http://ftp.debian.org/debian/pool/main/n/newt
 NEWT_DIR=$(BUILD_DIR)/newt-0.50.17
 NEWT_PATCH=$(SOURCE_DIR)/newt.patch
 ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true)
-NEWT_CFLAGS="-Os -g -fPIC -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64"
+NEWT_CFLAGS="-Os -g -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
 else
-NEWT_CFLAGS="-Os -g -fPIC"
+NEWT_CFLAGS="-Os -g"
 endif
+NEWT_CFLAGS+="-fPIC"
 
 $(DL_DIR)/$(NEWT_SOURCE):
        $(WGET) -P $(DL_DIR) $(NEWT_SITE)/$(NEWT_SOURCE)
index 8de9b5b4c8b5335c445ac3333076abac60966ba6..74a7fb2dc3dbcbf8c15782323995414753dea03f 100644 (file)
@@ -7,10 +7,11 @@ ZLIB_SOURCE=zlib-1.1.4.tar.bz2
 ZLIB_SITE=http://telia.dl.sourceforge.net/sourceforge/libpng
 ZLIB_DIR=$(BUILD_DIR)/zlib-1.1.4
 ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true)
-ZLIB_CFLAGS="-Os -g -fPIC -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64"
+ZLIB_CFLAGS="-Os -g -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
 else
-ZLIB_CFLAGS="-Os -g -fPIC"
+ZLIB_CFLAGS="-Os -g"
 endif
+ZLIB_CFLAGS+="-fPIC"
 
 $(DL_DIR)/$(ZLIB_SOURCE):
        $(WGET) -P $(DL_DIR) $(ZLIB_SITE)/$(ZLIB_SOURCE)