Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
otp_src_23.2-erts-cflags.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File otp_src_23.2-erts-cflags.patch of Package erlang
diff -Ndurp otp_src_23.2/erts/configure.in otp_src_23.2-erts-cflags/erts/configure.in --- otp_src_23.2/erts/configure.in 2019-05-10 15:42:49.000000000 +0300 +++ otp_src_23.2-erts-cflags/erts/configure.in 2019-05-16 00:02:32.723693060 +0300 @@ -476,35 +476,6 @@ AC_SUBST(ERTS_CONFIG_H_IDIR) extra_flags="$ERTS_CONFIG_H_IDIR $OTP_EXTRA_FLAGS" CFLAGS="$CFLAGS $extra_flags" -DEBUG_CFLAGS="-g $CPPFLAGS $extra_flags $DEBUG_CFLAGS" -DEBUG_FLAGS=-g - -dnl -dnl Adjust DEBUG_CFLAGS to match CFLAGS in terms of -m -dnl - -case $CFLAGS in - *-m64*) - case $DEBUG_CFLAGS in - *-m64*) - ;; - *) - DEBUG_CFLAGS="-m64 $DEBUG_CFLAGS" - ;; - esac - ;; - *-m32*) - case $DEBUG_CFLAGS in - *-m32*) - ;; - *) - DEBUG_CFLAGS="-m32 $DEBUG_CFLAGS" - ;; - esac - ;; - *) - ;; -esac lfs_conf=ok lfs_source=none @@ -604,8 +575,6 @@ case "$CFLAGS" in If you want to build erts without any optimization, pass -O0 to CFLAGS.]) ;; esac -dnl DEBUG_FLAGS is obsolete (I hope) -AC_SUBST(DEBUG_FLAGS) AC_SUBST(DEBUG_CFLAGS) AC_SUBST(WFLAGS) AC_SUBST(WERRORFLAGS) diff -Ndurp otp_src_23.2/erts/emulator/Makefile.in otp_src_23.2-erts-cflags/erts/emulator/Makefile.in --- otp_src_23.2/erts/emulator/Makefile.in 2019-05-10 15:42:49.000000000 +0300 +++ otp_src_23.2-erts-cflags/erts/emulator/Makefile.in 2019-05-16 00:01:53.287630295 +0300 @@ -286,14 +286,6 @@ ifeq (@EMU_LOCK_CHECKING@,yes) NO_INLINE_FUNCTIONS=true endif -ifneq ($(filter tile-%,$(TARGET)), ) -# -O2 generally produces faster for tile-cc, because the code is smaller. -# Since tile-cc looks like gcc, we need to override the normal gcc -O3 setting. -OPT_LEVEL = -O2 -else -OPT_LEVEL = -O3 -endif - ifeq ($(GCC),yes) ifeq ($(NO_INLINE_FUNCTIONS),true) GEN_OPT_FLGS = $(OPT_LEVEL) -fno-inline-functions @@ -332,11 +324,10 @@ CS_PURIFY = CS_TYPE_FLAGS = $(subst QUANTIFY,FAKE_QUANTIFY, \ $(subst PURIFY,FAKE_PURIFY, $(TYPE_FLAGS))) endif -CS_CFLAGS_ = $(CS_TYPE_FLAGS) $(DEFS) $(WFLAGS) ifeq ($(GCC),yes) -CS_CFLAGS = $(subst -O2, $(GEN_OPT_FLGS) $(UNROLL_FLG), $(CS_CFLAGS_)) +CS_CFLAGS = $(CS_TYPE_FLAGS) $(GEN_OPT_FLGS) $(UNROLL_FLG) $(DEFS) $(WFLAGS) else -CS_CFLAGS = $(CS_CFLAGS_) +CS_CFLAGS = $(CS_TYPE_FLAGS) $(DEFS) $(WFLAGS) endif CS_LDFLAGS = $(LDFLAGS) CS_LIBS = -L../lib/internal/$(TARGET) -lerts_internal$(TYPEMARKER) @ERTS_INTERNAL_X_LIBS@ @SOCKET_LIBS@ @@ -1101,7 +1092,7 @@ $(OBJDIR)/%.o: hipe/%.S $(V_CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ $(OBJDIR)/%.o: hipe/%.c - $(V_CC) $(subst O2,O3, $(CFLAGS)) $(INCLUDES) -c $< -o $@ + $(V_CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ $(BINDIR)/hipe_mkliterals$(TF_MARKER): $(OBJDIR)/hipe_mkliterals.o $(ld_verbose)$(CC) $(LDFLAGS) -o $@ $< $(ORIG_LIBS) @@ -1153,7 +1144,7 @@ $(OBJDIR)/hipe_arm_bifs.o: $(TTF_DIR)/hi # Use -fomit-frame-pointer to work around gcc (v4.5.2) bug causing # "error: r7 cannot be used in asm here" for DEBUG build. $(OBJDIR)/hipe_arm.o: hipe/hipe_arm.c - $(V_CC) $(subst O2,O3, $(CFLAGS)) -fomit-frame-pointer $(INCLUDES) -c $< -o $@ + $(V_CC) $(CFLAGS) -fomit-frame-pointer $(INCLUDES) -c $< -o $@ # end of HiPE section ######################################## diff -Ndurp otp_src_23.2/erts/emulator/zlib/zlib.mk otp_src_23.2-erts-cflags/erts/emulator/zlib/zlib.mk --- otp_src_23.2/erts/emulator/zlib/zlib.mk 2019-05-10 15:42:49.000000000 +0300 +++ otp_src_23.2-erts-cflags/erts/emulator/zlib/zlib.mk 2019-05-16 00:01:53.287630295 +0300 @@ -54,7 +54,7 @@ else # gcov ifeq ($(TYPE),debug) ZLIB_CFLAGS = -DZLIB_DEBUG=1 $(DEBUG_CFLAGS) $(DEFS) $(THR_DEFS) else # debug -ZLIB_CFLAGS = $(subst -O2, -O3, $(CONFIGURE_CFLAGS) $(DEFS) $(THR_DEFS)) +ZLIB_CFLAGS = $(CONFIGURE_CFLAGS) $(DEFS) $(THR_DEFS) #ZLIB_CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 #ZLIB_CFLAGS=-g -DDEBUG #ZLIB_CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ diff -Ndurp otp_src_23.2/erts/lib_src/Makefile.in otp_src_23.2-erts-cflags/erts/lib_src/Makefile.in --- otp_src_23.2/erts/lib_src/Makefile.in 2019-05-10 15:42:49.000000000 +0300 +++ otp_src_23.2-erts-cflags/erts/lib_src/Makefile.in 2019-05-16 00:01:53.287630295 +0300 @@ -43,7 +43,7 @@ INSTALL_PROGRAM=@INSTALL_PROGRAM@ ERLANG_OSTYPE=@ERLANG_OSTYPE@ OMIT_FP=false -CFLAGS=$(subst O2,O3, @CFLAGS@) +CFLAGS=@CFLAGS@ LDFLAGS=@LDFLAGS@ ifeq ($(TYPE),debug)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor