Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
c9d929d7
Commit
c9d929d7
authored
Oct 07, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(install-common-headers): Avoid ! operator, for assert.h.
From-SVN: r2347
parent
84c29ce4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
gcc/Makefile.in
+10
-2
No files found.
gcc/Makefile.in
View file @
c9d929d7
...
...
@@ -1491,8 +1491,16 @@ install-common-headers: install-dir $(USER_H) gvarargs.h gstdarg.h gstddef.h
done
# Put assert.h in /usr/local/include, so it won't override GNU libc's assert.h.
# Don't replace the assert.h already there if it is not from GCC.
if
[
-f
$(assertdir)/assert.h
]
&&
!
grep
"__eprintf"
$(assertdir)/assert.h;
\
then
true;
\
# This code would be simpler if it tested for -f ... && ! grep ...
# but supposedly the ! operator is missing in sh on some systems.
if
[
-f
$(assertdir)/assert.h
];
\
then
\
if
grep
"__eprintf"
$(assertdir)/assert.h;
\
rm
-f
$(assertdir)/assert.h;
\
$(INSTALL_DATA)
$(srcdir)/assert.h
$(assertdir)/assert.h;
\
chmod
a-x
$(assertdir)/include/assert.h;
\
else
true;
\
fi;
\
else
\
rm
-f
$(assertdir)/assert.h;
\
$(INSTALL_DATA)
$(srcdir)/assert.h
$(assertdir)/assert.h;
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment