Browse Source

adjustment for Windows (fPIC & examoles/src)

MaximilianBauer 10 years ago
parent
commit
8345c094cd
1 changed files with 9 additions and 3 deletions
  1. 9 3
      Makefile.am

+ 9 - 3
Makefile.am

@@ -1,8 +1,14 @@
 #AM_CFLAGS  = -std=c99 -pedantic -pipe -fPIC -fno-exceptions -fstack-protector -Wl,-z,relro -Wl,-z,now -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function -Wno-unused-label -Wpointer-arith -Wformat -Wreturn-type -Wsign-compare -Wmultichar -Wformat-nonliteral -Winit-self -Wuninitialized -Wno-deprecated -Wformat-security -Werror
-AM_CFLAGS  = -std=c99 -pedantic -pipe -fPIC -funsigned-char -Wno-pointer-sign -fno-exceptions -fstack-protector -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function -Wno-unused-label -Wpointer-arith -Wformat -Wreturn-type -Wsign-compare -Wmultichar -Wformat-nonliteral -Winit-self -Wuninitialized -Wno-deprecated -Wformat-security -Werror
+AM_CFLAGS  = -std=c99 -pedantic -pipe -funsigned-char -Wno-pointer-sign -fno-exceptions -fstack-protector -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function -Wno-unused-label -Wpointer-arith -Wformat -Wreturn-type -Wsign-compare -Wmultichar -Wformat-nonliteral -Winit-self -Wuninitialized -Wno-deprecated -Wformat-security -Werror
 AM_LDFLAGS =
 AM_LDADD =
 
+if TARGET_WIN
+else
+AM_CFLAGS += -fPIC 
+endif
+
+
 if DEBUG
 AM_CFLAGS += -g3 -O0
 else
@@ -29,5 +35,5 @@ endif
 if ENABLE_DOXYGEN
 	SUBS+= doc
 endif
-SUBDIRS = $(SUBS) examples/src	
-
+#SUBDIRS = $(SUBS) examples/src		
+#under Windows this is not possible because of include <sys/select.h> in open62541\example\scr\networklayer.h