Skip to content

Commit 64940f8

Browse files
ferdymercurydpiparo
authored andcommitted
[nfc] mention how to restore build broken by removed autolinkdef
Fixes #22656
1 parent 1fdc0eb commit 64940f8

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

README/ReleaseNotes/v640/index.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,12 @@ The following people have contributed to this new version:
100100
* ROOT now adds a RUNPATH to compiled macros. This ensures that when compiled macros are loaded, they load the libraries that belong to the ROOT installation
101101
that compiled the macro. See [TSystem::SetMakeSharedLib()](https://root.cern.ch/doc/master/classTSystem.html#a80cd12e064e2285b35e9f39b5111d20e) for
102102
customising or disabling the RUNPATH.
103-
* `rootcling` fails if no selection rule is specified and if the creation of a C++ module is not requested.
103+
* `rootcling` fails if no selection rule is specified and if the creation of a C++ module is not requested. Calling `ROOT_GENERATE_DICTIONARY(G__MyClass MyClass.h)` from an external CMake project with classes without any LinkDef might break your build now, since automatic linkdef generation has been removed. To solve it, just update (backward compatible) your header class `MyClass.h` with the following lines:
104+
```
105+
#ifdef __ROOTCLING__
106+
#pragma link C++ class MyClass + ;
107+
#endif
108+
```
104109
* To ease debugging of unwanted auto-parsing triggered by TClass::GetClass, two new features are introduced:
105110
* * Give access to the list of classes that triggered auto-parsing:
106111
```
@@ -838,4 +843,4 @@ The following items were addressed:
838843

839844
The version of the following packages has been updated:
840845

841-
- xrootd: 5.9.5
846+
- xrootd: 5.9.5

0 commit comments

Comments
 (0)