Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions auto/cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,13 @@ case $NJS_CC_NAME in
gcc)
njs_define=NJS_GCC . auto/define

NJS_CFLAGS="$NJS_CFLAGS -pipe"
NJS_CFLAGS="$NJS_CFLAGS -fPIC"

# Do not export symbols except explicitly marked with NJS_EXPORT.
NJS_CFLAGS="$NJS_CFLAGS -fvisibility=hidden"

# c99/gnu99 conflict with Solaris XOPEN.
#NJS_CFLAGS="$NJS_CFLAGS -std=gnu99"

NJS_CFLAGS="$NJS_CFLAGS -O"
#NJS_CFLAGS="$NJS_CFLAGS -O0"
NJS_CFLAGS="$NJS_CFLAGS -W -Wall -Wextra"

#NJS_CFLAGS="$NJS_CFLAGS -Wunused-result"
Expand All @@ -94,12 +90,6 @@ case $NJS_CC_NAME in

NJS_CFLAGS="$NJS_CFLAGS -Wmissing-prototypes"

# Stop on warning.
NJS_CFLAGS="$NJS_CFLAGS -Werror"

# Debug.
NJS_CFLAGS="$NJS_CFLAGS -g"

if [ "$NJS_ADDRESS_SANITIZER" = "YES" ]; then
NJS_CFLAGS="$NJS_CFLAGS -fsanitize=address"
NJS_CFLAGS="$NJS_CFLAGS -fno-omit-frame-pointer"
Expand All @@ -109,14 +99,11 @@ case $NJS_CC_NAME in
clang)
njs_define=NJS_CLANG . auto/define

NJS_CFLAGS="$NJS_CFLAGS -pipe"
NJS_CFLAGS="$NJS_CFLAGS -fPIC"

# Do not export symbols except explicitly marked with NJS_EXPORT.
NJS_CFLAGS="$NJS_CFLAGS -fvisibility=hidden"

NJS_CFLAGS="$NJS_CFLAGS -O"
#NJS_CFLAGS="$NJS_CFLAGS -O0"
NJS_CFLAGS="$NJS_CFLAGS -W -Wall -Wextra"

#NJS_CFLAGS="$NJS_CFLAGS -Wunused-result"
Expand All @@ -130,17 +117,6 @@ case $NJS_CC_NAME in

NJS_CFLAGS="$NJS_CFLAGS -Wmissing-prototypes"

# Stop on warning.
NJS_CFLAGS="$NJS_CFLAGS -Werror"

# Debug.

if [ "$NJS_SYSTEM_PLATFORM" != "powerpc" ]; then
# "-g" flag causes the "unknown pseudo-op: `.cfi_sections'"
# error on PowerPC Clang.
NJS_CFLAGS="$NJS_CFLAGS -g"
fi

if [ "$NJS_ADDRESS_SANITIZER" = "YES" ]; then
NJS_CFLAGS="$NJS_CFLAGS -fsanitize=address"
NJS_CFLAGS="$NJS_CFLAGS -fno-omit-frame-pointer"
Expand Down
4 changes: 2 additions & 2 deletions auto/options
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Copyright (C) NGINX, Inc.


NJS_CC_OPT=${NJS_CC_OPT:--O}
NJS_LD_OPT=${NJS_CC_OPT:--O}
NJS_CC_OPT=
NJS_LD_OPT=

NJS_DEBUG=NO
NJS_DEBUG_MEMORY=NO
Expand Down