Skip to content

Commit

Permalink
Drop "-g" flag from default options to reduce "erlexec" binary size
Browse files Browse the repository at this point in the history
  • Loading branch information
Zabrane authored Sep 23, 2024
1 parent 8cf9bb8 commit bd1123b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c_src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CXX ?= g++
ERL_CXXFLAGS ?= $(shell erl -noshell -noinput -eval 'io:format("-I~ts/erts-~ts/include -I~ts", [code:root_dir(), erlang:system_info(version), code:lib_dir(erl_interface, include)]), halt(0).')
ERL_LDFLAGS ?= $(shell erl -noshell -noinput -eval 'io:format("-L~ts", [code:lib_dir(erl_interface, lib)]), halt(0).')

CXXFLAGS += -g -std=c++11 -finline-functions -Wall -DHAVE_PTRACE -MMD
CXXFLAGS += -std=c++11 -finline-functions -Wall -DHAVE_PTRACE -MMD
USE_POLL ?= 1

UNAME_SYS := $(shell uname -s | tr 'A-Z' 'a-z')
Expand Down

0 comments on commit bd1123b

Please sign in to comment.