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:
Andrew Ayer 2015-08-21 05:30:22 -07:00
parent 5698649ec1
commit 3c96bf8a30
2 changed files with 5 additions and 5 deletions

View File

@ -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 $<

View File

@ -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