Preserve timestamps when copying files during build
If the timestamp is not preserved, the current time gets captured by the build, rendering it unreproducible.
This commit is contained in:
parent
5698649ec1
commit
3c96bf8a30
|
@ -55,10 +55,10 @@ sockets-link.ads: sockets-link.ads.in Makefile.RTEMS
|
|||
-e '/@RESOLVNEEDED@/d' $< >$@
|
||||
|
||||
sockets-thin.ads: sockets-thin.ads.unix
|
||||
cp $< $@
|
||||
cp -p $< $@
|
||||
|
||||
sockets-constants.ads: ../rtems/sockets-constants.ads
|
||||
cp $< $@
|
||||
cp -p $< $@
|
||||
|
||||
$(ADB_OBJ): %.o: %.adb
|
||||
$(CC) $(CPU_CFLAGS) $(CFLAGS)-c $<
|
||||
|
|
|
@ -73,11 +73,11 @@ nodist_libadasockets_la_SOURCES += \
|
|||
ADA_OBJECTS += sockets-windows_link.o
|
||||
|
||||
sockets-thin.ads: $(srcdir)/sockets-thin.ads.win32
|
||||
cp $(srcdir)/sockets-thin.ads.win32 sockets-thin.ads
|
||||
cp $(srcdir)/sockets-thin.adb.win32 sockets-thin.adb
|
||||
cp -p $(srcdir)/sockets-thin.ads.win32 sockets-thin.ads
|
||||
cp -p $(srcdir)/sockets-thin.adb.win32 sockets-thin.adb
|
||||
else
|
||||
sockets-thin.ads: $(srcdir)/sockets-thin.ads.unix
|
||||
cp -f $(srcdir)/sockets-thin.ads.unix sockets-thin.ads
|
||||
cp -p -f $(srcdir)/sockets-thin.ads.unix sockets-thin.ads
|
||||
endif
|
||||
|
||||
SUFFIXES = .ads .lo .ali
|
||||
|
|
Loading…
Reference in New Issue