[bTSstream-devel] [PATCH 2/2] examples: Fix compilation under OS X
Georgi Chorbadzhiyski
gf at unixsol.org
Mon Feb 19 12:15:44 CET 2018
-------------- next part --------------
From c00f4a289a65b2d86fac834df00eb01e2c24cadd Mon Sep 17 00:00:00 2001
From: Georgi Chorbadzhiyski <g.chorbadzhiyski at siteground.com>
Date: Sun, 18 Feb 2018 20:49:29 +0200
Subject: [PATCH 2/2] examples: Fix compilation under OS X
---
examples/Makefile | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/examples/Makefile b/examples/Makefile
index 61ac82f..489ba65 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -1,13 +1,13 @@
CFLAGS = -Wall -O2 -g
CFLAGS_LOCAL = -Wall -O2 -g -I. -I../..
-LDFLAGS = -lrt
OBJ = dvb_print_si dvb_gen_si dvb_ecmg dvb_ecmg_test mpeg_print_pcr rtp_check_seqnum mpeg_restamp
+ifeq "$(shell uname -s)" "Linux"
+LDFLAGS += -lrt
+endif
+
ifeq "$(shell uname -s)" "Darwin"
LDFLAGS += -liconv
-# Prevent generation of .dSYM debug directories
-CFLAGS += -gstabs
-CFLAGS_LOCAL += -gstabs
endif
all: $(OBJ)
@@ -19,4 +19,4 @@ local: CFLAGS = $(CFLAGS_LOCAL)
local: all
clean:
- rm -rf $(OBJ)
+ rm -rf $(OBJ) *.dSYM
--
2.16.0
More information about the biTStream-devel
mailing list