Hello Jakub, Thank you for the quick response. I assume, then, there's no need for making a function to set this global variable at this point. Should I create a simple unit test that asserts the value to be "libgompd.so.1" for now, or should I skip the unit test on this for now?
Cheers, Tony Sim On Thu, Jun 18, 2020 at 5:36 PM Jakub Jelinek <ja...@redhat.com> wrote: > On Thu, Jun 18, 2020 at 05:24:25PM -0400, y2s1982 . wrote: > > (LLVM currently simply puts { "ompd.so", NULL }, but I am assuming this > was > > just a placeholder.) > > Let's put there { "libgompd" SONAME_SUFFIX (1), NULL } for now. > You'll need to change the SONAME_SUFFIX macros though - remove the ()s > around the strings, so that it can be further concatenated. > > libgomp/config/darwin/plugin-suffix.h:#define SONAME_SUFFIX(n) ("." #n > ".dylib") > libgomp/config/posix/plugin-suffix.h:#define SONAME_SUFFIX(n) (".so." #n) > libgomp/config/hpux/plugin-suffix.h:#define SONAME_SUFFIX(n) (".sl." #n) > libgomp/target.c: const char *suffix = SONAME_SUFFIX (1); > > Jakub > >