mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-13 06:45:24 +01:00
Do not use pre-generated getdate.c
This commit is contained in:
parent
e655cb97f5
commit
fe26bc4c8c
9 changed files with 46 additions and 11 deletions
|
|
@ -9,7 +9,16 @@ src_prepare() {
|
|||
cp lib/fcntl_.h lib/fcntl.h
|
||||
sed -i 's#@ABSOLUTE_FCNTL_H@#"/after/include/musl/fcntl.h"#' lib/fcntl.h
|
||||
|
||||
touch config.h lib/configmake.h
|
||||
# Rebuild bison pre-generated file
|
||||
rm lib/getdate.c
|
||||
cd lib
|
||||
bison --update getdate.y
|
||||
bison getdate.y
|
||||
mv getdate.tab.c getdate.c
|
||||
cd ..
|
||||
|
||||
catm config.h
|
||||
catm lib/configmake.h
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
|
|
|
|||
|
|
@ -74,13 +74,14 @@ CFLAGS = -I . -I lib \
|
|||
-Dmajor_t=unsigned \
|
||||
-Dminor_t=unsigned \
|
||||
-DHAVE_GETTIMEOFDAY=1 \
|
||||
-DHAVE_TIME_R_POSIX=1 \
|
||||
-DHASH_ALGO_SHA256
|
||||
|
||||
.PHONY: all install
|
||||
|
||||
SRC_DIR=src
|
||||
|
||||
COREUTILS =
|
||||
COREUTILS = date
|
||||
|
||||
BINARIES = $(addprefix $(SRC_DIR)/, $(COREUTILS))
|
||||
|
||||
|
|
@ -88,7 +89,7 @@ ALL=$(BINARIES) $(SRC_DIR)/sha256sum
|
|||
all: $(BINARIES) $(SRC_DIR)/sha256sum
|
||||
|
||||
LIB_DIR = lib
|
||||
LIB_SRC = acl alloca getdate posixtm posixver strftime getopt hash hash-pjw argmatch backupfile basename canon-host closeout cycle-check diacrit dirname dup-safer error exclude exitfail filemode __fpending file-type fnmatch fopen-safer full-read full-write getline gettime hard-locale human idcache imaxtostr linebuffer localcharset long-options mbswidth md5 memcasecmp memcoll modechange offtostr physmem quote quotearg readtokens rpmatch safe-read safe-write same save-cwd savedir settime sha256 stpcpy stripslash umaxtostr unicodeio userspec version-etc version-etc-fsf xgetcwd xgethostname xmalloc xmemcoll xnanosleep xreadlink xstrtod xstrtol xstrtoul xstrtoimax xstrtoumax yesno strnlen getcwd sig2str mountlist canonicalize mkstemp memrchr euidaccess obstack strverscmp strftime xalloc-die close-stream
|
||||
LIB_SRC = acl alloca getdate fprintftime posixtm posixver strftime getopt hash hash-pjw argmatch backupfile basename canon-host closeout cycle-check diacrit dirname dup-safer error exclude exitfail filemode __fpending file-type fnmatch fopen-safer full-read full-write getline gettime hard-locale human idcache imaxtostr linebuffer localcharset long-options mbswidth md5 memcasecmp memcoll modechange offtostr physmem quote quotearg readtokens rpmatch safe-read safe-write same save-cwd savedir settime sha256 stpcpy stripslash umaxtostr unicodeio userspec version-etc version-etc-fsf xgetcwd xgethostname xmalloc xmemcoll xnanosleep xreadlink xstrtod xstrtol xstrtoul xstrtoimax xstrtoumax yesno strnlen getcwd sig2str mountlist canonicalize mkstemp memrchr euidaccess obstack strverscmp strftime xalloc-die close-stream
|
||||
|
||||
LIB_OBJECTS = $(addprefix $(LIB_DIR)/, $(addsuffix .o, $(LIB_SRC)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue