Do not use pre-generated getdate.c

This commit is contained in:
Andrius Štikonas 2021-03-13 19:32:19 +00:00
parent e655cb97f5
commit fe26bc4c8c
9 changed files with 46 additions and 11 deletions

View file

@ -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() {