-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There is a bug in ld.exe as supplied by mingw workaround is to copy .dll but not .lib file to a place where ld will see it. msys2/MINGW-packages#15469
- Loading branch information
Showing
3 changed files
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#*# | ||
\#* | ||
*.o | ||
*~ | ||
.Rproj.user | ||
|
@@ -20,5 +20,4 @@ Makevars | |
aclocal.m4 | ||
./ | ||
config.h | ||
#DESCRIPTION# | ||
symbols.rds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
NETICA_HOME = @NETICA_HOME@ | ||
ifeq "$(WIN)" "64" | ||
NETICA_LIB = ${NETICA_HOME}/lib64 | ||
INSTALL_LIB = ${R_PACKAGE_DIR}/libs/x64 | ||
LONG_SIZE = 8 | ||
else | ||
NETICA_LIB = ${NETICA_HOME}/lib | ||
INSTALL_LIB = ${R_PACKAGE_DIR}/libs/i386 | ||
LONG_SIZE = 4 | ||
endif | ||
|
||
PKG_LIBS = -L. -L${INSTALL_LIB} -lNetica | ||
PKG_CFLAGS = -I. @NETICA_CFLAGS@ -DLONG_SIZE=${LONG_SIZE} | ||
|
||
.PHONY: all NeticaDLL clean | ||
|
||
all: $(SHLIB) | ||
$(SHLIB): NeticaDLL | ||
|
||
|
||
NeticaDLL: | ||
mkdir -p "$(INSTALL_LIB)" | ||
cp "${NETICA_LIB}/Netica.dll" "${INSTALL_LIB}" | ||
cp "${NETICA_LIB}/Netica.lib" "${INSTALL_LIB}" | ||
|
||
clean: | ||
Netica/clean.win | ||
rm config.h | ||
NETICA_HOME = @NETICA_HOME@ | ||
ifeq "$(WIN)" "64" | ||
NETICA_LIB = ${NETICA_HOME}/lib64 | ||
INSTALL_LIB = ${R_PACKAGE_DIR}/libs/x64 | ||
LONG_SIZE = 8 | ||
else | ||
NETICA_LIB = ${NETICA_HOME}/lib | ||
INSTALL_LIB = ${R_PACKAGE_DIR}/libs/i386 | ||
LONG_SIZE = 4 | ||
endif | ||
PKG_LIBS = -L. -l:Netica.dll | ||
PKG_CFLAGS = -I. @NETICA_CFLAGS@ -DLONG_SIZE=${LONG_SIZE} | ||
.PHONY: all NeticaDLL clean | ||
all: NeticaDLL | ||
NeticaDLL: | ||
cp "$(NETICA_LIB)/Netica.dll" . | ||
mkdir -p "${INSTALL_LIB}" | ||
cp "${NETICA_LIB}/Netica.dll" "${INSTALL_LIB}" | ||
cp "${NETICA_LIB}/Netica.lib" "${INSTALL_LIB}" | ||
clean: | ||
Netica/clean.win | ||
rm config.h Netica.dll |