File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 7
7
GTK3_INCLUDE = -I/usr/include/gtk-3.0 -I/usr/include/glib-2.0 -I/usr/lib/x86 _64 -linux-gnu/glib-2.0 /include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/harfbuzz
8
8
GTK3_LIBRARIES = -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
9
9
10
- CXXFLAGS += -O2 -g -fpermissive -Wno-deprecated-declarations $(GTK3 _INCLUDE) $(P4 PLUGIN_INCLUDE)
11
- LDFLAGS += -g
12
- LIBRARIES = -lstdc++ -lrt $(GTK3 _LIBRARIES)
10
+ CFLAGS += -O3 -g -fPIC -fexceptions -fvisibility =hidden -DLINUX
11
+ CXXFLAGS += $(CFLAGS) -fpermissive -Wno-deprecated-declarations $(GTK3 _INCLUDE) $(P4 PLUGIN_INCLUDE)
12
+ LDFLAGS += -g -pthread
13
+ LIBRARIES += -lstdc++ -lrt $(GTK3 _LIBRARIES)
13
14
PLATFORM = linux64
14
15
15
16
COMMON_MODULES = $(COMMON_SRCS:.c=.o)
@@ -22,7 +23,7 @@ TESTSERVER_TARGET= Build/$(PLATFORM)/TestServer
22
23
P4PLUGIN_MODULES = $(P4 PLUGIN_SRCS:.c=.o)
23
24
P4PLUGIN_MODULES := $(P4 PLUGIN_MODULES:.cpp=.o)
24
25
P4PLUGIN_TARGET = Perfor cePlugin
25
- P4PLUGIN_LINK += $(LIBRARIES) -ldl -fPIC - no-pie
26
+ P4PLUGIN_LINK += $(LIBRARIES) -ldl -no-pie
26
27
27
28
default : all
28
29
Original file line number Diff line number Diff line change @@ -161,12 +161,6 @@ sub TestWin32
161
161
162
162
sub BuildLinux ($)
163
163
{
164
- my $cflags = ' -O3 -fPIC -fexceptions -fvisibility=hidden -DLINUX' ;
165
- my $cxxflags = " $cflags -Wno-ctor-dtor-private" ;
166
-
167
- $ENV {' CFLAGS' } = $cflags ;
168
- $ENV {' CXXFLAGS' } = $cxxflags ;
169
-
170
164
system (' make' , ' -f' , ' Makefile.gnu' , ' clean' );
171
165
system (' make' , ' -f' , ' Makefile.gnu' ) && die (" Failed to build PerforcePlugin for linux64" );
172
166
}
You can’t perform that action at this time.
0 commit comments