Skip to content

Commit

Permalink
Always build the RPM package with debugging symbols as RPM needs this…
Browse files Browse the repository at this point in the history
… to create the -debuginfo package
  • Loading branch information
gs-kamnas committed Mar 8, 2024
1 parent c690858 commit 8117a47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ ifeq ($(COVERAGE),1)
else ifeq ($(DEBUG),1)
# DEBUG
CFLAGS += -g -O0
else ifeq ($(NOSTRIP),1)
# Packaging, therefore optimization enabled but build with debug symbols
# as RPM will strip these out into a -debuginfo package that can be optionally installed
CFLAGS += -g -O3
else
# RELEASE
CFLAGS += -O3
Expand Down
2 changes: 1 addition & 1 deletion rpm/SPECS/cntlm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contains detailed information.

%build
CC=gcc ./configure
make %{?_smp_mflags} SYSCONFDIR=%{_sysconfdir}
make NOSTRIP=1 %{?_smp_mflags} SYSCONFDIR=%{_sysconfdir}

%install
make BINDIR=%{buildroot}%{_sbindir} MANDIR=%{buildroot}%{_mandir} SYSCONFDIR=%{buildroot}%{_sysconfdir} NOSTRIP=1 install
Expand Down

0 comments on commit 8117a47

Please sign in to comment.