<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/mkmf.rb, branch v4.0.3</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[DOC] Fix link in MakeMakefile</title>
<updated>2025-12-14T22:35:26+00:00</updated>
<author>
<name>BurdetteLamar</name>
<email>burdettelamar@yahoo.com</email>
</author>
<published>2025-12-14T22:28:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e7cf07ba3e6758e3e6d34754422505c75fdf9c80'/>
<id>e7cf07ba3e6758e3e6d34754422505c75fdf9c80</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use LSAN_OPTIONS instead of ASAN_OPTIONS in mkmf</title>
<updated>2025-10-04T01:33:31+00:00</updated>
<author>
<name>Peter Zhu</name>
<email>peter@peterzhu.ca</email>
</author>
<published>2025-10-04T00:33:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e8f879e9f5d53aea7cd29ef064e25930323cb857'/>
<id>e8f879e9f5d53aea7cd29ef064e25930323cb857</id>
<content type='text'>
Newer versions of clang's LSAN uses LSAN_OPTIONS environment variable
instead of ASAN_OPTIONS.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Newer versions of clang's LSAN uses LSAN_OPTIONS environment variable
instead of ASAN_OPTIONS.
</pre>
</div>
</content>
</entry>
<entry>
<title>Suppress maybe-uninitialized warnings</title>
<updated>2025-07-31T14:07:08+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-07-31T10:44:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=68a03167a5d2be2b73196d6437a01fe5f069dff1'/>
<id>68a03167a5d2be2b73196d6437a01fe5f069dff1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Copy to path with the base name</title>
<updated>2025-05-11T17:50:25+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-05-11T15:20:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2fe8b9cd3d308d754f3d33a948dfb1dd782a10dc'/>
<id>2fe8b9cd3d308d754f3d33a948dfb1dd782a10dc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix unnecessary `false` in `CLEANLIBS`</title>
<updated>2025-04-13T07:53:18+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-04-13T07:53:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8c9cd65d8203cbae8f95a945669ee6215a0287e1'/>
<id>8c9cd65d8203cbae8f95a945669ee6215a0287e1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] About `create_makefile`</title>
<updated>2025-01-14T06:34:17+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-01-14T06:34:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4daa5ebb77282b0c004ae07b0fa37a74dacdedf8'/>
<id>4daa5ebb77282b0c004ae07b0fa37a74dacdedf8</id>
<content type='text'>
Describe two features that were missing from the documentation:

- yields configuration part if a block is given.
- "depend" file will be included.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Describe two features that were missing from the documentation:

- yields configuration part if a block is given.
- "depend" file will be included.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use the dedicated constants `LIBARG` and `LIBPATHFLAG`</title>
<updated>2024-12-23T02:52:14+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-12-02T13:38:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b19fcd02fae7bea162c6f1cee371a4b024305be7'/>
<id>b19fcd02fae7bea162c6f1cee371a4b024305be7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Implements [Feature #3456]: Support pkgconf on windows</title>
<updated>2024-12-23T02:52:14+00:00</updated>
<author>
<name>Julien Marrec</name>
<email>julien.marrec@gmail.com</email>
</author>
<published>2024-02-02T08:40:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=be7e5f1f85685a757bea6c8dae4e30914a5eec67'/>
<id>be7e5f1f85685a757bea6c8dae4e30914a5eec67</id>
<content type='text'>
1. Store the `PKG_CONFIG` variable in Makefile.sub (or try to get it from the ENV var PKG_CONFIG in mkmf.rb)
2. Try to use --msvc-syntax, with a fallback to replacing -Lxxx with -libpath:xxx. --msvc-syntax has been in pkgconf since 1.4.0 (released 7 years ago). pkg-config (freedesktop), does not support it, hence the fallback.
3. The `try_ldflags` passes these `ldflags` as the `opt` parameter to the `link_command`, not as `ldflags`. Unix systems are forgiving in that regard, MSVC is not: as a result as passing them as `opt`, they (specifically the `/libpath:xxx` ones) end up passed before the `-link` command to `cl.exe` and it throws because it ignores it and therefore can't find the lib.

```
cl : Command line warning D9002 : ignoring unknown option '-libpath:C:/Users/julien/.conan2/p/libff3726d89a6255c/p/lib'
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
1. Store the `PKG_CONFIG` variable in Makefile.sub (or try to get it from the ENV var PKG_CONFIG in mkmf.rb)
2. Try to use --msvc-syntax, with a fallback to replacing -Lxxx with -libpath:xxx. --msvc-syntax has been in pkgconf since 1.4.0 (released 7 years ago). pkg-config (freedesktop), does not support it, hence the fallback.
3. The `try_ldflags` passes these `ldflags` as the `opt` parameter to the `link_command`, not as `ldflags`. Unix systems are forgiving in that regard, MSVC is not: as a result as passing them as `opt`, they (specifically the `/libpath:xxx` ones) end up passed before the `-link` command to `cl.exe` and it throws because it ignores it and therefore can't find the lib.

```
cl : Command line warning D9002 : ignoring unknown option '-libpath:C:/Users/julien/.conan2/p/libff3726d89a6255c/p/lib'
```
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove leading spaces from `LIBPATHFLAG` and `RPATHFLAG`</title>
<updated>2024-09-29T14:07:16+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-09-29T14:07:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1f6d2e77d9be9a5a829e60908d21d621f4e1ceb0'/>
<id>1f6d2e77d9be9a5a829e60908d21d621f4e1ceb0</id>
<content type='text'>
Join with a space in `MakeMakefile#libpathflag` instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Join with a space in `MakeMakefile#libpathflag` instead.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Feature #20345] Add `--target-rbconfig` option to mkmf</title>
<updated>2024-04-02T05:24:54+00:00</updated>
<author>
<name>Yuta Saito</name>
<email>kateinoigakukun@gmail.com</email>
</author>
<published>2024-02-20T07:03:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8b55aaa85ca3b5333e6659f0f0b1eabdd0b9491b'/>
<id>8b55aaa85ca3b5333e6659f0f0b1eabdd0b9491b</id>
<content type='text'>
Introduce a new mkmf option `--target-rbconfig` to specify the RbConfig
file for the deployment target platform. This option is useful for
cross-compiling Ruby extensions without faking the global top-level
`RbConfig` constant.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduce a new mkmf option `--target-rbconfig` to specify the RbConfig
file for the deployment target platform. This option is useful for
cross-compiling Ruby extensions without faking the global top-level
`RbConfig` constant.
</pre>
</div>
</content>
</entry>
</feed>
