File snipl-0.2.1.2-hwmcaapidir.patch of Package snipl

--- Makefile
+++ Makefile
@@ -43,7 +43,7 @@
 GROUP           = $(shell id -gn)
 
 GLIB2_HEADERS   = `pkg-config --cflags glib-2.0`
-CFLAGS  += -DUNIX=1 -DST_TEXTDOMAIN='"stonith"' -g -O2 -Wall -I. -I$(INCDIR) -I$(STONITHINCDIR)
+CFLAGS  += -DUNIX=1 -DST_TEXTDOMAIN='"stonith"' -g -O2 -Wall -I. -I$(INCDIR) -I$(HWMCAAPI_DIR)/usr/include -I$(STONITHINCDIR)
 
 all: all_config all_sniplapi all_vmsmapi all_snipl all_stonith 
 install: install_subdirs install_config install_sniplapi install_vmsmapi install_snipl install_stonith
@@ -74,17 +74,17 @@
 	install $(INSTALL_FLAGS) libconfig.so $(LIBDIR)
 
 
-ifeq ($(shell if [ -f /usr/${LIB_STRING}/libhwmcaapi.so ]; \
+ifeq ($(shell if [ -f $(HWMCAAPI_DIR)/usr/${LIB_STRING}/libhwmcaapi.so ]; \
 		then echo ok; fi),ok)
 
-LIB_LPAR = -lsniplapi -lhwmcaapi 
+LIB_LPAR = -L$(HWMCAAPI_DIR)/usr/${LIB_STRING} -lsniplapi -lhwmcaapi 
 LPAR_INCLUDED = -DLPAR_INCLUDED=1
 OBJ_LPAR = libsniplapi.so libconfig.so 
 
 all_sniplapi: libsniplapi.so 
 
 libsniplapi.so: sniplapi.o 
-	$(LINK.c) -o $@ -shared -lhwmcaapi sniplapi.o
+	$(LINK.c) -o $@ -shared -L$(HWMCAAPI_DIR)/usr/${LIB_STRING} -lhwmcaapi sniplapi.o
 
 sniplapi.o: sniplapi.c snipl.h
 	$(CC) $(CFLAGS) -c -fPIC sniplapi.c 
openSUSE Build Service is sponsored by