mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-27 20:25:12 +00:00
Some compiler flag tweaks, and elaborated comments on compiler flags use
darcs-hash:20060305212330-ac50b-f37c3f5464545965c1b4ace9282622111f8783a9.gz
This commit is contained in:
parent
acd28b5dc4
commit
d48e9ef8b1
2 changed files with 20 additions and 6 deletions
6
INSTALL
6
INSTALL
|
@ -3,8 +3,8 @@ Known issues
|
||||||
============
|
============
|
||||||
|
|
||||||
Fish currently requires a semi-modern GCC version to
|
Fish currently requires a semi-modern GCC version to
|
||||||
compile. Specifically, GCC 2.95.* won't compile fish, but GCC 3.23
|
compile. Specifically, GCC 2.95.* won't compile fish, but GCC 3.2.3 is
|
||||||
should work. Fish has not been coded with an C99- or GNU-specific
|
known to work. Fish has not been coded with an C99- or GNU-specific
|
||||||
features in mind, so it is hoped that it should be possible to make
|
features in mind, so it is hoped that it should be possible to make
|
||||||
fish work with other compilers. Patches are welcome.
|
fish work with other compilers. Patches are welcome.
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ Local install procedure
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
If you have downloaded the darcs repository of fish, you need to run
|
If you have downloaded the darcs repository of fish, you need to run
|
||||||
autoconf first.
|
autoconf to generate the configure script.
|
||||||
|
|
||||||
To install fish in your own home directory (typically as non-root),
|
To install fish in your own home directory (typically as non-root),
|
||||||
type:
|
type:
|
||||||
|
|
20
Makefile.in
20
Makefile.in
|
@ -36,8 +36,22 @@
|
||||||
CC := @CC@
|
CC := @CC@
|
||||||
INSTALL:=@INSTALL@
|
INSTALL:=@INSTALL@
|
||||||
|
|
||||||
# Compiler flags
|
#
|
||||||
CFLAGS:=@CFLAGS@ -Wall -std=gnu99 -fno-strict-aliasing
|
# Compiler flags:
|
||||||
|
#
|
||||||
|
# -fno-optimize-sibling-calls seems to work around a bug where sending
|
||||||
|
# a SIGWINCH to fish on NetBSD causes fish to exit. This is probably
|
||||||
|
# either a compiler bug or a libc bug, but this seems to fix things for
|
||||||
|
# now. Long term, this should be tracked down and truly fixed, at which
|
||||||
|
# point we can remove this silly flag.
|
||||||
|
#
|
||||||
|
# -fno-strict-aliasing was sent in in a patch from James Vega. The
|
||||||
|
# specific problem that this fixes has been lost to me.
|
||||||
|
#
|
||||||
|
# -Wall is there to keep me on my toes
|
||||||
|
#
|
||||||
|
|
||||||
|
CFLAGS:=@CFLAGS@ -Wall -fno-strict-aliasing -fno-optimize-sibling-calls
|
||||||
CPPFLAGS=@CPPFLAGS@
|
CPPFLAGS=@CPPFLAGS@
|
||||||
LDFLAGS:= @LIBS@ @LDFLAGS@
|
LDFLAGS:= @LIBS@ @LDFLAGS@
|
||||||
|
|
||||||
|
@ -197,7 +211,7 @@ all: $(PROGRAMS) user_doc
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
make fish CFLAGS="-O0 -Wno-unused -Werror -g -Wall -std=gnu99 -fno-strict-aliasing"
|
make fish CFLAGS="-O0 -Wno-unused -Werror -g -Wall -fno-strict-aliasing -fno-optimize-sibling-calls"
|
||||||
.PHONY: debug
|
.PHONY: debug
|
||||||
|
|
||||||
# User documentation, describing the features of the fish shell.
|
# User documentation, describing the features of the fish shell.
|
||||||
|
|
Loading…
Reference in a new issue