Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rbnacl-libsodium
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
rbnacl-libsodium
Commits
2e4f719a
Commit
2e4f719a
authored
Apr 02, 2016
by
Tony Arcieri
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7 from shirosaki/windows
Fix issues for Windows MinGW
parents
f66e4c47
07f850af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
ext/rbnacl/extconf.rb
ext/rbnacl/extconf.rb
+6
-1
No files found.
ext/rbnacl/extconf.rb
View file @
2e4f719a
...
...
@@ -19,9 +19,14 @@ LIBSODIUM_DIR = File.expand_path(File.join(CWD, '..', '..', 'vendor', 'libsodium
MAKE
=
ENV
[
'MAKE'
]
||
ENV
[
'make'
]
||
"make"
Dir
.
chdir
(
LIBSODIUM_DIR
)
do
sys
(
"./configure --prefix=
#{
LIBSODIUM_DIR
}
/dist"
)
# sh is required to run configure on Windows
sys
(
"sh -c
\"
./configure --prefix=
#{
LIBSODIUM_DIR
}
/dist
\"
"
)
sys
(
MAKE
)
sys
(
"
#{
MAKE
}
install"
)
if
!
Dir
.
glob
(
'dist/bin/libsodium*.dll'
).
empty?
# copy dll to make it loadable on Windows
sys
(
"cp dist/bin/libsodium*.dll dist/lib/libsodium.so"
)
end
end
File
.
open
(
"Makefile"
,
"w"
)
do
|
f
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment