Skip to content

Commit 797c569

Browse files
committed
build with -fno-common
Follow-up to cherry-picking hishamhm#981 * add -fno-common to AM_CFLAGS * move -D and -I options from AM_CFLAGS to AM_CPPFLAGS
1 parent 7f77d12 commit 797c569

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ applications_DATA = htop.desktop
1212
pixmapdir = $(datadir)/pixmaps
1313
pixmap_DATA = htop.png
1414

15-
AM_CFLAGS = -pedantic -Wall $(wextra_flag) $(werror_flag) -Wno-cast-function-type -std=c99 -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=\"$(sysconfdir)\" -I"$(top_srcdir)/$(my_htop_platform)"
15+
AM_CFLAGS = -pedantic -Wall $(wextra_flag) $(werror_flag) -Wno-cast-function-type -std=c99 -fno-common
1616
AM_LDFLAGS =
17-
AM_CPPFLAGS = -DNDEBUG
17+
AM_CPPFLAGS = -DNDEBUG -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=\"$(sysconfdir)\" -I"$(top_srcdir)/$(my_htop_platform)"
1818

1919
myhtopsources = AvailableMetersPanel.c CategoriesPanel.c CheckItem.c \
2020
ClockMeter.c ColorsPanel.c ColumnsPanel.c CPUMeter.c CRT.c MainPanel.c \

0 commit comments

Comments
 (0)