OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9a299a
)
Linux/Unix: tighten regexp gcc-wrap uses to set the object file name so it works...
author
Eric Branlund
<ebranlund@fastmail.com>
Mon, 13 Jun 2022 13:35:32 +0000
(07:35 -0600)
committer
Eric Branlund
<ebranlund@fastmail.com>
Mon, 13 Jun 2022 13:35:32 +0000
(07:35 -0600)
src/gcc-wrap
patch
|
blob
|
history
diff --git
a/src/gcc-wrap
b/src/gcc-wrap
index
524e9f9
..
c057242
100755
(executable)
--- a/
src/gcc-wrap
+++ b/
src/gcc-wrap
@@
-5,7
+5,7
@@
jp=$(grep "#define JP" autoconf.h | wc -l)
if test $jp -eq 1; then
# Prepare the various file paths.
eval SRC_FILE=\${$#}
- OBJ_FILE=$(echo $SRC_FILE | sed -E 's/\.
.
+$/\.o/')
+ OBJ_FILE=$(echo $SRC_FILE | sed -E 's/\.
[^./]
+$/\.o/')
SRC_DIR=$(
cd $(dirname $0)
pwd