This fixes compilation problems related to modbus on 64 bit Fedora.

Fedora stores the glibconfig.h file in /usr/lib64/glib-2.0/include/.
Use GLIB_LIBS and GLIB_CFLAGS instead of hard coded values.

Signed-off-by: Chris Lesiak <[email protected]>

---

diff --git a/src/hal/user_comps/Submakefile b/src/hal/user_comps/Submakefile
index b3f666f..0c311ac 100644
--- a/src/hal/user_comps/Submakefile
+++ b/src/hal/user_comps/Submakefile
@@ -10,8 +10,8 @@ PYTARGETS += $(patsubst %, ../bin/%, $(USER_COMP_PY))
 
 MODBUSSRCS := hal/user_comps/gs2_vfd.c\
        hal/user_comps/modbus.c
-MODBUSLDFLAGS := -lglib-2.0
-MODBUSCCFLAGS := -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
+MODBUSLDFLAGS := $(GLIB_LIBS)
+MODBUSCCFLAGS := $(GLIB_CFLAGS)
 USERSRCS += $(MODBUSSRCS)
 
  $(call TOOBJSDEPS, $(MODBUSSRCS)) : EXTRAFLAGS += $(MODBUSCCFLAGS)


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to