What is the exact equivalent to LD_PRELOAD on OSX?

前端 未结 1 807
感动是毒
感动是毒 2021-01-04 03:06

I am using LD_PRELOAD to hook a library function, and in Linux it works perfectly. But I cannot figure out how to do the equivalent in OSX.

The setup I

1条回答
  •  -上瘾入骨i
    2021-01-04 03:30

    Take a look at DYLD_INSERT_LIBRARIES. That's the variable you're looking for.

    See also this answer.

    0 讨论(0)
提交回复
热议问题