Commit d28d2942 authored by Slava Monich's avatar Slava Monich

[libwspcodec] Leave debug symbols in release build for debuginfo package

parent f224de6a
# -*- Mode: makefile -*-
# -*- Mode: makefile-gmake -*-
.PHONY: clean all debug release pkgconfig install install-dev
......@@ -55,6 +55,15 @@ RELEASE_CFLAGS = -O2 $(CFLAGS) -MMD -MP
RELEASE_LDFLAGS = $(LDFLAGS)
ARFLAGS = rc
ifndef KEEP_SYMBOLS
KEEP_SYMBOLS = 0
endif
ifneq ($(KEEP_SYMBOLS),0)
RELEASE_CFLAGS += -g
RELEASE_LDFLAGS += -g
endif
#
# Files
#
......@@ -104,7 +113,9 @@ $(DEBUG_LIB): $(DEBUG_BUILD_DIR) $(DEBUG_OBJS)
$(RELEASE_LIB): $(RELEASE_BUILD_DIR) $(RELEASE_OBJS)
$(LD) -o $@ $(RELEASE_LDFLAGS) $(RELEASE_OBJS)
ifeq ($(KEEP_SYMBOLS),0)
strip $@
endif
$(DEBUG_BUILD_DIR)/%.o : $(SRC_DIR)/%.c
$(CC) -c $(DEBUG_CFLAGS) -MF"$(@:%.o=%.d)" $< -o $@
......
......@@ -26,7 +26,7 @@ This package contains the development library for %{name}.
%setup -q
%build
make release pkgconfig
make KEEP_SYMBOLS=1 release pkgconfig
%install
rm -rf %{buildroot}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment