Skip to content

Commit

Permalink
changes to support for configuring and building R-compatible dynamic …
Browse files Browse the repository at this point in the history
…libraries
  • Loading branch information
jdtournier committed Jun 5, 2013
1 parent 0ce0554 commit 41ed829
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class Entry:
self.deps = self.deps.union (list_lib_deps())

self.cmd = fillin (ld, {
'LDFLAGS': fillin (ld_flags, { 'LIBNAME': [ os.path.basename (self.name) ] }) + flags,
'LDFLAGS': [ s.replace ('LIBNAME', os.path.basename (self.name)) for s in ld_flags ] + flags,
'OBJECTS': self.deps,
'EXECUTABLE': [ self.name ] })

Expand Down Expand Up @@ -297,7 +297,7 @@ class Entry:
self.deps = list_lib_deps()

self.cmd = fillin (ld_lib, {
'LDLIB_FLAGS': fillin (ld_lib_flags, { 'LIBNAME': [ os.path.basename (self.name) ] }),
'LDLIB_FLAGS': [ s.replace ('LIBNAME', os.path.basename (self.name) for s in ld_lib_flags ],
'OBJECTS': [ item for item in self.deps ],
'LIB': [ self.name ] })

Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ elif system == 'windows':
ld_lib_flags += [ '-shared' ]
elif system == 'darwin':
cpp_flags += [ '-DMACOSX', '-fPIC' ]
ld_lib_flags += [ '-dynamiclib', '-install_name', '@rpath/LIBNAME' ]
ld_lib_flags += [ '-dynamiclib', '-install_name', '@rpath/../'+lib_dir+'/LIBNAME' ]
lib_suffix = '.dylib'


Expand Down

0 comments on commit 41ed829

Please sign in to comment.