diff options
author | Ken Raeburn <raeburn@cygnus> | 1994-04-14 22:46:53 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1994-04-14 22:46:53 +0000 |
commit | c92d9ee9006288589f4466496632ee20f431a985 (patch) | |
tree | a13884ca04f3edfc1d077bcfaa98d044212a763d /gas/vmsconf.sh | |
parent | d6f98c552b15e430f2a7e2fe38b111afa13a4dcf (diff) | |
download | binutils-gdb-c92d9ee9006288589f4466496632ee20f431a985.tar.gz |
* Makefile.in: Make $(OBJS) depend on $(ALL_OBJ_DEPS).
* configure.in: Set ALL_OBJ_DEPS in output Makefile.
Based on suggestions from <BAILEY@hmivax.humgen.upenn.edu> (Charles Bailey):
* vmsconf.sh: In generated file, get ".obj" suffix right, build source files
from other directories into objects in the current directory, and specify PSECT
attributes explicitly to linker. Also added missing label.
* Makefile.in (stamp-mk.com): Reference new variable VMS_OTHER_OBJS for list of
non-local object files, instead of listing them here.
(VMS_OTHER_OBJS): New variable, added more libiberty files.
* make-gas.com: Regenerated.
* config/ho-vms.h (unlink): Define as delete.
* config-gas.com: Fix quoting on TARGET_CANONICAL definition. Delete files
before creating them.
Diffstat (limited to 'gas/vmsconf.sh')
-rw-r--r-- | gas/vmsconf.sh | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/gas/vmsconf.sh b/gas/vmsconf.sh index 1f732c31215..e1111ebd5de 100644 --- a/gas/vmsconf.sh +++ b/gas/vmsconf.sh @@ -53,19 +53,19 @@ EOF cfiles="`echo $* | sed -e 's/\.o/.c/g' -e 's!../\([^ /]*\)/\([^ /]*\.c\)![-.\1]\2!g'`" for cfile in $cfiles ; do - echo "\$ gcc 'c_flags'/define=('C_DEFS') $cfile" case $cfile in - "[-."*) copyfiles="$copyfiles $cfile" ;; + "[-."*) + base=`echo $cfile | sed -e 's/\[.*\]//' -e 's/\.c$//'` + echo "\$ gcc 'c_flags'/define=('C_DEFS')/object=[]$base.obj $cfile" + ;; + *) + echo "\$ gcc 'c_flags'/define=('C_DEFS') $cfile" + ;; esac done -for c in $copyfiles ; do - base=`echo $c | sed -e 's/\[.*\]//' -e 's/\.c$//'` - dir=`echo $c | sed 's/\].*$/]/'` - echo "\$if f\$search(\"$base.obj\").eqs.\"\" then copy $dir$base.obj *.*" -done - cat << 'EOF' +$link: $ link/nomap/exec=gcc-as version.opt/opt+sys$input:/opt ! ! Linker options file for GNU assembler @@ -73,9 +73,12 @@ $ link/nomap/exec=gcc-as version.opt/opt+sys$input:/opt EOF for obj in $* ; do - echo $obj,- | sed 's!.*/!!g' + # Change "foo.o" into "foo.obj". + echo ${obj}bj,- | sed 's!.*/!!g' done cat << 'EOF' gnu_cc:[000000]gcclib/lib,sys$share:vaxcrtl/lib +! Tell linker exactly what psect attributes we want -- match VAXCRTL. +psect_addr=ENVIRON,long,pic,ovr,rel,gbl,noshr,noexe,rd,wrt EOF |