File sbig_x86_64-makefile.patch of Package sbig_x86_64
--- app/Makefile
+++ app/Makefile
@@ -6,7 +6,7 @@
# 1) change directory to 'sbig'
# 2) make
# Note: Linker uses shared libraries and do not forget to put
-# *.so libraries to the /usr/local/lib directory and
+# *.so libraries to the /usr/lib64 directory and
# setenv LD_LIBRARY_PATH to this path. See README.txt for details.
####################################################################################
APP_NAME = testapp
@@ -16,8 +16,8 @@
APP_SRC = $(S_APP)
APP_OBJ = $(O_APP)
INCLUDE = -I .
-LIBRARY = -L /usr/local/lib
-APP_CFLAGS = -O2 $(INCLUDE) $(LIBRARY) -Wall
+LIBRARY = -L../drv -L/usr/lib64
+APP_CFLAGS = -O2 $(RPM_OPT_FLAGS) $(INCLUDE) $(LIBRARY) -Wall
APP_CC = g++
####################################################################################
all: $(APP_NAME)
@@ -26,7 +26,7 @@
####################################################################################
$(APP_NAME): $(APP_OBJ)
# $(APP_CC) $(APP_CFLAGS) -o $(APP_NAME) $(APP_OBJ) -lsbigudrv -lcfitsio -lm
- $(APP_CC) $(APP_CFLAGS) -o $(APP_NAME) $(APP_OBJ) -lsbigudrv -lm
+ $(APP_CC) $(APP_CFLAGS) -o $(APP_NAME) $(APP_OBJ) -lsbigudrv64 -lm
chmod a+x $(APP_NAME)
testmain.o : testmain.cpp csbigcam.h csbigimg.h