File: build-flags_Construct.patch

package info (click to toggle)
atom4 4.1-10
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 908 kB
  • sloc: cpp: 4,451; makefile: 25; perl: 6
file content (22 lines) | stat: -rw-r--r-- 840 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/Construct
+++ b/Construct
@@ -80,7 +80,10 @@ $X11LIBPATH  = $ARG{X11LIBPATH} || '/usr
 # Global configuration
 $COMPILER = $ARG{COMPILER} || 'g++';
 $REALDATADIR = $ARG{REALDATADIR} || abspath(DirPath($DATADIR));
-$CFLAGS   = "-pedantic -DDATADIR=\\\"$REALDATADIR\\\"";
+$CFLAGS   = $ARG{CFLAGS};
+$CFLAGS  .= $ARG{CPPFLAGS};
+$CFLAGS  .= $ARG{CXXFLAGS};
+$CFLAGS  .= "-pedantic -DDATADIR=\\\"$REALDATADIR\\\"";
 $CFLAGS  .= " -g3" if $ARG{DEBUG};
 $CFLAGS  .= " -O$OPTIMIZE" if $OPTIMIZE;
 $CFLAGS  .= " -pg -DPROFILE" if $PROFILE;
@@ -89,6 +92,7 @@ $CFLAGS  .= " -pg -DPROFILE" if $PROFILE
 $INCPATH  = "$INCDIR:$PROGLIBPATH/include";
 $LIBPATH  = "$PROGLIBPATH/lib:$LIBDIR:$X11LIBPATH";
 $LIBS     = "$PROGLIB -lxatom4 -latom4 $NCURSESLIB $X11LIB";
+$LIBS    .= $ARG{LDFLAGS};
 $LIBS    .= " -pg" if $PROFILE;
 
 $CONS = new cons(