GetPrerequisites: Add test for @rpath support.

This commit is contained in:
Clinton Stimpson
2012-01-19 22:03:06 -07:00
parent 880139a642
commit 0d96decdd0
2 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
#include "framework.h"
#include "shared.h"
#include "stdio.h"
#if defined(WIN32)
#include <windows.h>
#else
#include "dlfcn.h"
#endif
int main(int, char**)
{
framework();
shared();
#if defined(WIN32)
HANDLE lib = LoadLibraryA("module3.dll");
if(!lib)
{
printf("Failed to open module3\n");
}
#else
void* lib = dlopen("module3.so", RTLD_LAZY);
if(!lib)
{
printf("Failed to open module3\n%s\n", dlerror());
}
#endif
return lib == 0 ? 1 : 0;
}