Mercurial > hg > toybox
annotate configure @ 914:91d15ead5602
Stat cleanup.
Put global stat info in a union so we don't have to malloc it and thus don't need an explicit size tracked in main(). Make date_stat_format() take a timespec and take advantage of stat having an embedded timespec (nanosecond printing), typecast the long long prints for XYZ because on some 32 bit platforms it's an int.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 01 Jun 2013 20:47:16 -0500 |
parents | 0ef095b63a66 |
children | 67eedf74a707 |
rev | line source |
---|---|
233
d4176f3f3835
Zap toys/Config.in and instead create generated/Config.in from contents of
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 # Toybox configuration file. |
d4176f3f3835
Zap toys/Config.in and instead create generated/Config.in from contents of
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
d4176f3f3835
Zap toys/Config.in and instead create generated/Config.in from contents of
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 # This sets environment variables used by scripts/make.sh |
d4176f3f3835
Zap toys/Config.in and instead create generated/Config.in from contents of
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 |
d4176f3f3835
Zap toys/Config.in and instead create generated/Config.in from contents of
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 # A synonym. |
d4176f3f3835
Zap toys/Config.in and instead create generated/Config.in from contents of
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 [ -z "$CROSS_COMPILE" ] && CROSS_COMPILE="$CROSS" |
787
0ef095b63a66
Revert some debug code accidentally checked in at commit 715.
Rob Landley <rob@landley.net>
parents:
715
diff
changeset
|
7 [ -z "$CFLAGS" ] && CFLAGS="-Wall -Wundef -Wno-char-subscripts" |
603
150a6d81bd02
Replace CCFLAGS with description of how to add flags to HOSTCC.
Rob Landley <rob@landley.net>
parents:
512
diff
changeset
|
8 # Required for our expected ABI. we're 8-bit clean thus "char" must be unsigned. |
150a6d81bd02
Replace CCFLAGS with description of how to add flags to HOSTCC.
Rob Landley <rob@landley.net>
parents:
512
diff
changeset
|
9 CFLAGS="$CFLAGS -funsigned-char" |
233
d4176f3f3835
Zap toys/Config.in and instead create generated/Config.in from contents of
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 |
787
0ef095b63a66
Revert some debug code accidentally checked in at commit 715.
Rob Landley <rob@landley.net>
parents:
715
diff
changeset
|
11 [ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -Wl,--gc-sections" |
512
9bcc288a1c54
Fix from Georgi Chorbadzhiyski to make cross compiling more robust.
Rob Landley <rob@landley.net>
parents:
358
diff
changeset
|
12 [ -z "$CC" ] && CC=cc |
9bcc288a1c54
Fix from Georgi Chorbadzhiyski to make cross compiling more robust.
Rob Landley <rob@landley.net>
parents:
358
diff
changeset
|
13 [ -z "$STRIP" ] && STRIP=strip |
603
150a6d81bd02
Replace CCFLAGS with description of how to add flags to HOSTCC.
Rob Landley <rob@landley.net>
parents:
512
diff
changeset
|
14 |
150a6d81bd02
Replace CCFLAGS with description of how to add flags to HOSTCC.
Rob Landley <rob@landley.net>
parents:
512
diff
changeset
|
15 # If HOSTCC needs CFLAGS, add them to the variable ala HOSTCC="blah-cc --static" |
233
d4176f3f3835
Zap toys/Config.in and instead create generated/Config.in from contents of
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
16 [ -z "$HOSTCC" ] && HOSTCC=gcc |