OBS-URL: https://build.opensuse.org/package/show/utilities/schily?expand=0&rev=20
23 lines
2.2 KiB
Diff
23 lines
2.2 KiB
Diff
Fix a build error when psmake is bootstrapped via MAKE-sh:
|
|
|
|
+ gcc -o smake make.o readfile.o parse.o update.o rules.o archconf.o job.o memory.o astoi.o astoll.o comerr.o error.o eaccess.o format.o getexecpath.o jsprintf.o jssnprintf.o saveargs.o seterrno.o strcatl.o strlcpy.o strncpy.o streql.o getargs.o geterrno.o movebytes.o fillbytes.o raisecond.o rename.o searchinpath.o uname.o file_raise.o fileopen.o fcons.o cvmod.o flag.o flush.o dat.o filewrite.o fileread.o fileseek.o niread.o niwrite.o
|
|
[ 85s] make.o: In function `gcurtime':
|
|
[ 85s] make.c:(.text+0x100f): undefined reference to `getnstimeofday'
|
|
[ 85s] collect2: error: ld returned 1 exit status
|
|
|
|
---
|
|
psmake/MAKE-sh | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
Index: schily-2018-05-17/psmake/MAKE-sh
|
|
===================================================================
|
|
--- schily-2018-05-17.orig/psmake/MAKE-sh
|
|
+++ schily-2018-05-17/psmake/MAKE-sh
|
|
@@ -259,4 +259,5 @@ $CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINE
|
|
$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES fileseek.c
|
|
$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES niread.c
|
|
$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES niwrite.c
|
|
-$CC $LF $LDFLAGS -o smake make.$o readfile.$o parse.$o update.$o rules.$o archconf.$o job.$o memory.$o astoi.$o astoll.$o comerr.$o error.$o eaccess.$o format.$o getexecpath.$o jsprintf.$o jssnprintf.$o saveargs.$o seterrno.$o strcatl.$o strlcpy.$o strncpy.$o streql.$o getargs.$o geterrno.$o movebytes.$o fillbytes.$o raisecond.$o rename.$o searchinpath.$o uname.$o file_raise.$o fileopen.$o fcons.$o cvmod.$o flag.$o flush.$o dat.$o filewrite.$o fileread.$o fileseek.$o niread.$o niwrite.$o
|
|
+$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES ../libschily/getnstimeofday.c
|
|
+$CC $LF $LDFLAGS -o smake make.$o readfile.$o parse.$o update.$o rules.$o archconf.$o job.$o memory.$o astoi.$o astoll.$o comerr.$o error.$o eaccess.$o format.$o getexecpath.$o jsprintf.$o jssnprintf.$o saveargs.$o seterrno.$o strcatl.$o strlcpy.$o strncpy.$o streql.$o getargs.$o geterrno.$o movebytes.$o fillbytes.$o raisecond.$o rename.$o searchinpath.$o uname.$o file_raise.$o fileopen.$o fcons.$o cvmod.$o flag.$o flush.$o dat.$o filewrite.$o fileread.$o fileseek.$o niread.$o niwrite.$o getnstimeofday.$o
|